# HG changeset patch # User ymh # Date 1571217818 -7200 # Node ID 00ac8f60d73ff1cb5783c781ef4ed8325c5f86d4 # Parent d255fe9cd479afc3e06dc9966117f73c3851d23c remove unused plugins diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/content_timeline.php --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/content_timeline.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ - \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/content_timeline_class.php --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/content_timeline_class.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,365 +0,0 @@ -main = $file; - $this->init(); - return $this; - } - - function init() { - $this->path = dirname( __FILE__ ); - $this->name = basename( $this->path ); - $this->url = plugins_url( "/{$this->name}/" ); - if( is_admin() ) { - - register_activation_hook( $this->main , array(&$this, 'activate') ); - - add_action('admin_menu', array(&$this, 'admin_menu')); - - // Ajax calls - add_theme_support( 'post-thumbnails' ); - add_action('wp_ajax_ctimeline_save', array(&$this, 'ajax_save')); - add_action('wp_ajax_ctimeline_preview', array(&$this, 'ajax_preview')); - add_action('wp_ajax_ctimeline_post_search', array(&$this, 'ajax_post_search')); - add_action('wp_ajax_ctimeline_post_get', array(&$this, 'ajax_post_get')); - add_action('wp_ajax_ctimeline_post_category_get', array(&$this, 'ajax_post_category_get')); - add_action('wp_ajax_ctimeline_frontend_get', array(&$this, 'ajax_frontend_get')); - add_action('wp_ajax_nopriv_ctimeline_frontend_get', array(&$this, 'ajax_frontend_get')); - - } - else { - add_action('wp', array(&$this, 'frontend_includes')); - add_shortcode('content_timeline', array(&$this, 'shortcode') ); - } - } - - function activate() { - global $wpdb; - - $table_name = $wpdb->base_prefix . 'ctimelines'; - - if ($wpdb->get_var("SHOW TABLES LIKE '$table_name'") != $table_name) { - $royal_sliders_sql = "CREATE TABLE " . $table_name ." ( - id mediumint(9) NOT NULL AUTO_INCREMENT, - name tinytext NOT NULL COLLATE utf8_general_ci, - settings text NOT NULL COLLATE utf8_general_ci, - items text NOT NULL COLLATE utf8_general_ci, - PRIMARY KEY (id) - );"; - - require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); - dbDelta($royal_sliders_sql); - } - - } - - function admin_menu() { - $ctmenu = add_menu_page( 'Content Timeline', 'Content Timeline', 'manage_options', 'contenttimeline', array(&$this, 'admin_page')); - $submenu = add_submenu_page( 'contenttimeline', 'Content Timeline', 'Add New', 'manage_options', 'contenttimeline_edit', array(&$this, 'admin_edit_page')); - - add_action('load-'.$ctmenu, array(&$this, 'admin_menu_scripts')); - add_action('load-'.$submenu, array(&$this, 'admin_menu_scripts')); - add_action('load-'.$ctmenu, array(&$this, 'admin_menu_styles')); - add_action('load-'.$submenu, array(&$this, 'admin_menu_styles')); - } - - function admin_menu_scripts() { - wp_enqueue_script('post'); - wp_enqueue_script('farbtastic'); - wp_enqueue_script('thickbox'); - wp_enqueue_script('ctimeline-admin-js', $this->url . 'js/ctimeline_admin.js' ); - wp_enqueue_script('jQuery-easing', $this->url . 'js/frontend/jquery.easing.1.3.js' ); - wp_enqueue_script('jQuery-timeline', $this->url . 'js/frontend/jquery.timeline.js' ); - - wp_enqueue_script('jQuery-ui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js' ); - wp_enqueue_script('jQuery-mousew', $this->url . 'js/frontend/jquery.mousewheel.min.js' ); - wp_enqueue_script('jQuery-customScroll', $this->url . 'js/frontend/jquery.mCustomScrollbar.min.js' ); - } - - function admin_menu_styles() { - wp_enqueue_style('farbtastic'); - wp_enqueue_style('thickbox'); - wp_enqueue_style( 'ctimeline-admin-css', $this->url . 'css/ctimeline_admin.css' ); - wp_enqueue_style( 'ctimeline-thick-css', $this->url . 'css/thickbox.css' ); - wp_enqueue_style( 'timeline-css', $this->url . 'css/frontend/timeline.css' ); - wp_enqueue_style( 'customScroll-css', $this->url . 'css/frontend/jquery.mCustomScrollbar.css' ); - } - - function ajax_save() { - $id = false; - $settings = ''; - $items = ''; - foreach( $_POST as $key => $value) { - if ($key != 'action') { - if ($key == 'timeline_id'){ - if ($value != '') { - $id = (int)$value; - } - } - else if ($key == 'timeline_title'){ - $name = stripslashes($value); - } - else if(strpos($key,'sort') === 0){ - $items .= $key . '::' . stripslashes($value) . '||'; - } - else { - $settings .= $key . '::' . stripslashes($value) . '||'; - } - } - } - if ($items != '') $items = substr($items,0,-2); - if ($settings != '') $settings = substr($settings,0,-2); - global $wpdb; - $table_name = $wpdb->base_prefix . 'ctimelines'; - if($id) { - $wpdb->update( - $table_name, - array( - 'name'=>$name, - 'settings'=>$settings, - 'items'=>$items), - array( 'id' => $id ), - array( - '%s', - '%s', - '%s'), - array('%d') - ); - } - else { - $wpdb->insert( - $table_name, - array( - 'name'=>$name, - 'settings'=>$settings, - 'items'=>$items), - array( - '%s', - '%s', - '%s') - - ); - $id = $wpdb->insert_id; - } - - - echo $id; - die(); - } - - function ajax_preview() { - $tid = false; - $tsettings = ''; - $titems = ''; - foreach( $_POST as $key => $value) { - if ($key != 'action') { - if ($key == 'timeline_id'){ - if ($value != '') { - $tid = (int)$value; - } - } - else if ($key == 'timeline_title'){ - $tname = $value; - } - else if(strpos($key,'sort') === 0){ - $titems .= $key . '::' . $value . '||'; - } - else { - $tsettings .= $key . '::' . $value . '||'; - } - } - } - if ($titems != '') $titems = substr($titems,0,-2); - if ($tsettings != '') $tsettings = substr($tsettings,0,-2); - - include_once($this->path . '/pages/content_timeline_preview.php'); - - die(); - } - - function ajax_post_search(){ - if(isset($_POST['query']) && !empty($_POST['query'])){ - $searchVal = strtolower($_POST['query']); - } - else { - $searchVal = ''; - } - - $query_args = array( 'posts_per_page' => -1, 'post_type' => 'any'); - $query = new WP_Query( $query_args ); - - foreach ( $query->posts as $match) { - if($searchVal != ''){ - if(strpos(strtolower($match->post_name), $searchVal) !== false){ - $thumbn = wp_get_attachment_image_src( get_post_thumbnail_id($match->ID) , 'full'); - echo '
  • '.$match->post_title .'
  • '; - } - } - } - die(); - } - - function ajax_post_get($post_id = false){ - $id = (int) $_POST['post_id']; - if ($post_id) $id = $post_id; - $post = get_post($id); - - echo $post->post_title . '||'; - echo substr($post->post_date, 8, 2) . '/' . substr($post->post_date, 5, 2) . '/' . substr($post->post_date, 0, 4) . '||'; - $post_categories = get_the_category( $id ); - - echo $post_categories[0]->name . '||'; - $excerpt = $post->post_excerpt; - if ($excerpt == '' && $post->post_content != '') { - echo substr($post->post_content,0,100) . '...'; - } - - echo $excerpt . '||'; - if ( has_post_thumbnail($id)) { - echo wp_get_attachment_url( get_post_thumbnail_id($id , 'full')); - } - echo '||' . $post->post_content; - - if(!$post_id) { - die(); - } - - } - - function ajax_post_category_get() { - $cat_name = $_POST['cat_name']; - $term = get_term_by('name', $cat_name, 'category'); - $cat_id = $term->term_id; - - $the_query = new WP_Query( array( 'cat' => $cat_id, 'post_type' => 'any', 'posts_per_page'=>-1, 'order' => 'ASC')); - $start = true; - while ( $the_query->have_posts() ) : $the_query->the_post(); - if ($the_query->post->post_type != 'page') { - if (!$start) { - echo '||'; - } - $start = false; - $this->ajax_post_get($the_query->post->ID); - } - endwhile; - - die(); - } - - function ajax_frontend_get(){ - $timelineId = $_GET['timeline']; - $id = $_GET['id']; - - - global $wpdb; - if($timelineId) { - $timeline = $wpdb->get_results('SELECT * FROM ' . $wpdb->base_prefix . 'ctimelines WHERE id='.$timelineId); - $timeline = $timeline[0]; - - $cats = "["; - $catArray = array(); - $ccNumbers = array(); - $catNumber = 0; - - foreach(explode('||',$timeline->settings) as $val) { - $expl = explode('::',$val); - if(substr($expl[0], 0, 8) == 'cat-name') { - if($cats != "[") $cats .= ","; - $cc = get_cat_name(intval(substr($expl[0], 9))); - $cats .= "'".$cc."'"; - array_push ($catArray,$cc); - array_push ($ccNumbers, 0); - $catNumber++; - } - else { - $settings[$expl[0]] = $expl[1]; - } - - } - $cats .= "]"; - - - if ($timeline->items != '') { - $explode = explode('||',$timeline->items); - $open_content_height = intval($settings['item-height']) - intval($settings['item-open-image-height']) - 2*intval($settings['item-open-content-padding']) -intval($settings['item-open-image-border-width']) - 6; - - foreach ($explode as $it) { - $ex2 = explode('::', $it); - $key = substr($ex2[0],0,strpos($ex2[0],'-')); - $subkey = substr($ex2[0],strpos($ex2[0],'-')+1); - $itemsArray[$key][$subkey] = $ex2[1]; - } - - $arr = $itemsArray[$id]; - - - $frontHtml =''; - - if ($arr['item-open-image'] != '') { - $frontHtml .= ' - - -
    '; - - } - else { - $frontHtml .= ' -
    '; - } - - if ($arr['item-open-title'] != '') { - $frontHtml .= ' -

    '.$arr['item-open-title'].'

    '; - } - $frontHtml .= ' - ' . $arr['item-open-content'].' -
    '; - - echo do_shortcode($frontHtml); - } - - die(); - } - } - - - - function admin_page() { - include_once($this->path . '/pages/content_timeline_index.php'); - } - - function admin_edit_page() { - include_once($this->path . '/pages/content_timeline_edit.php'); - } - - function shortcode($atts) { - extract(shortcode_atts(array( - 'id' => '' - ), $atts)); - - include_once($this->path . '/pages/content_timeline_frontend.php'); - $frontHtml = preg_replace('/\s+/', ' ',$frontHtml); - - return do_shortcode($frontHtml); - } - - function frontend_includes() { - wp_enqueue_script('jquery'); - wp_enqueue_script('jQuery-easing', $this->url . 'js/frontend/jquery.easing.1.3.js' ); - wp_enqueue_script('jQuery-timeline', $this->url . 'js/frontend/jquery.timeline.js' ); - wp_enqueue_script('jQuery-mousew', $this->url . 'js/frontend/jquery.mousewheel.min.js' ); - wp_enqueue_script('jQuery-customScroll', $this->url . 'js/frontend/jquery.mCustomScrollbar.min.js' ); - wp_enqueue_script('jQuery-ui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js' ); - wp_enqueue_script('rollover', $this->url . 'js/frontend/rollover.js' ); - wp_enqueue_script('jquery-prettyPhoto', $this->url . 'js/frontend/jquery.prettyPhoto.js' ); - - wp_enqueue_style( 'timeline-css', $this->url . 'css/frontend/timeline.css' ); - wp_enqueue_style( 'customScroll-css', $this->url . 'css/frontend/jquery.mCustomScrollbar.css' ); - wp_enqueue_style( 'prettyPhoto-css', $this->url . 'css/frontend/prettyPhoto.css' ); - - } -} -?> diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/ctimeline_admin.css --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/ctimeline_admin.css Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,285 +0,0 @@ -.misc-pub-section.timeline-pub-section { - padding-left:0; - padding-right:0; -} - -#save-loader { - padding:5px; - display:none; -} - -table.fields-group { - width:100%; - padding:0 0 5px 0; - margin:0; -} -table.fields-group td { - padding:2px 0; - width:129px; -} -table.fields-group label { -} - -table.fields-group select { - width:130px; -} - -table.fields-group input[type="checkbox"] { - margin-left:3px; -} - -.timeline-help { - font-size:14px; - font-weight:bold; - cursor:pointer; - display:block; - float:left; - position:relative; - padding:0px 5px 0px 0; -} - -.timeline-tooltip { - float:none; - position:absolute; - bottom:20px; - left:-10px; - background:#fff; - width:200px; - font-weight:normal; - font-size:10px; - border-radius:4px; - background:#404040; - opacity:0.9; - filter:alpha(opacity=90); - color:#fff; - text-shadow:none; - padding:5px; - display:none; - font-family:sans-serif; - line-height:15px; -} - -.timeline-help:hover .timeline-tooltip { - display:block; -} - - -.timeline-pub-section h3 { - margin-bottom:10px; -} - -.cw-color-picker-holder { - position:relative; -} -.cw-color-picker { - display:none; - background:#fafafa; - position:absolute; - top:0; - left:0; - z-index:100; - border:1px solid #dddddd; -} -.cw-image-upload { - display:block; - width:258px; - height:50px; - border:1px solid #dddddd; -} - -.cat-display { - display:none; -} - -.sortableItem { - position:relative; - display:block; - border:#dfdfdf 1px solid; - text-shadow:#fff 0 1px 0; - -moz-box-shadow:0 1px 0 #fff; - -webkit-box-shadow:0 1px 0 #fff; - box-shadow:0 1px 0 #fff; - border-radius:3px; -} -.tsort-header { - font-family:Georgia,"Times New Roman", "Bitstream Charter", Times, serif; - font-size:16px; - cursor:move; - display:block; - padding:10px; - background-color:#f1f1f1; - background-image:-ms-linear-gradient(top,#f9f9f9,#ececec); - background-image:-moz-linear-gradient(top,#f9f9f9,#ececec); - background-image:-o-linear-gradient(top,#f9f9f9,#ececec); - background-image:-webkit-gradient(linear,left top,left bottom,from(#f9f9f9),to(#ececec)); - background-image:-webkit-linear-gradient(top,#f9f9f9,#ececec); - background-image:linear-gradient(top,#f9f9f9,#ececec); - border-bottom:#dfdfdf 1px solid; - border-radius:3px 3px 0 0; -} -.tsort-plus { - position:absolute; - display:block; - padding:7px 5px; - top:5px; - right:7px; - font-size:22px; - font-weight:bold; - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - cursor:pointer; - color:#999999; -} -.tsort-content { - background: #f6f6f6; - display:none; -} -.tsort-plus:hover { - color:#333333; -} - -.tsort-item, .tsort-itemopen, .tsort-dataid { - padding:10px; - border-bottom:#dfdfdf 1px solid; -} - -.tsort-itemopen { - border-bottom:0; - border-radius:0 0 3px 3px; - } - -.tsort-placeholder { - border-radius:3px; - border:#cfcfcf 1px dashed; - height:40px; -} - -.tsort-image { - position:relative; - overflow:hidden; - height:50px; - width:294px; - background-color:#f1f1f1; - background-image:-ms-linear-gradient(top,#f9f9f9,#ececec); - background-image:-moz-linear-gradient(top,#f9f9f9,#ececec); - background-image:-o-linear-gradient(top,#f9f9f9,#ececec); - background-image:-webkit-gradient(linear,left top,left bottom,from(#f9f9f9),to(#ececec)); - background-image:-webkit-linear-gradient(top,#f9f9f9,#ececec); - background-image:linear-gradient(top,#f9f9f9,#ececec); - border:#dfdfdf 1px solid; - border-radius:3px 3px 3px 3px; - float:left; - margin-right:5px; - } - .tsort-image img { - border-right:#dfdfdf 1px solid; - } -a.tsort-change { - position:absolute; - left:252px; - font-size:12px; - top: 7px; - text-decoration:none; - padding:10px 0px; - display:block; - width:50px; - text-align:center; - -webkit-transform: rotate(90deg); - -moz-transform: rotate(90deg); - -o-transform: rotate(90deg); - writing-mode: tb-rl; - color:#999999; - font-weight:bold; -} - -a.tsort-change:hover { - color:#666666; -} -.tsort-image:hover a.tsort-remove { - display:block; -} -a.tsort-remove { - position:absolute; - left:0; - top:0; - opacity:0.5; - filter:alpha(opacity=50); - display:none; - padding:3px 7px; - font-size:12px; - background:#000; - color:#fff; - text-decoration:none; - text-shadow:none; -} - -a.tsort-remove:hover { - color:#fff; - opacity:1.0; - filter:alpha(opacity=100); - -} - -input.tsort-title { - float:left; - font-size:22px; - margin-top:18px; - width:294px; -} -textarea.tsort-contarea { - margin-top:5px; - width:100%; - height:100px; - resize:vertical; -} - -#TBct_timelineSubmitLoader { - margin:14px 0px; - display:none; -} - -#timelineFromPostHolder { - position:relative; -} -#timelineFromPostLoader { - position:absolute; - right:10px; - top:0; - display:none; -} - -#timelineFromPostComplete { - overflow-x:hidden; - overflow-y:scroll; - height:170px; -} - -#timelineFromPostComplete li{ - margin:0; -} - -#timelineFromPostComplete li a{ - display:block; - padding:5px; - border-bottom:1px solid gray; - text-decoration:none; -} - -#timelineFromPostComplete li a.active { - background:#21759B; - color:#ffffff; -} - -#timelineFromPostComplete li img { - float:left; -} - -#timelineFromPostComplete li a span.timelinePostCompleteName { - display:block; - padding:8px; -} - diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/frontend/bebas/bebasneue-webfont.eot Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/frontend/bebas/bebasneue-webfont.eot has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/frontend/bebas/bebasneue-webfont.svg --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/frontend/bebas/bebasneue-webfont.svg Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,238 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/frontend/bebas/bebasneue-webfont.ttf Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/frontend/bebas/bebasneue-webfont.ttf has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/frontend/bebas/bebasneue-webfont.woff Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/frontend/bebas/bebasneue-webfont.woff has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/frontend/ie8fix.css --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/frontend/ie8fix.css Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ -.timelineLight .item .read_more, -.timelineLight .item_open .t_close, -.timeline .item_open .t_close { - - /* transparent background */ - filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#44000000', endColorstr='#44000000'); -} - -.timelineLight .t_node_desc, -.timeline .t_node_desc - { - - /* IE transparent background */ - filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#cc1a86ac', endColorstr='#cc1a86ac'); -} - -.timelineLight .item { - - /* Shadow */ - zoom: 1; - filter: progid:DXImageTransform.Microsoft.Shadow(Color=#888888, Strength=2, Direction=0), - progid:DXImageTransform.Microsoft.Shadow(Color=#888888, Strength=0, Direction=90), - progid:DXImageTransform.Microsoft.Shadow(Color=#888888, Strength=2, Direction=180), - progid:DXImageTransform.Microsoft.Shadow(Color=#888888, Strength=5, Direction=270); -} -.timelineLight .item_open { - - /* Shadow */ - zoom: 1; - filter: progid:DXImageTransform.Microsoft.Shadow(Color=#888888, Strength=5, Direction=0), - progid:DXImageTransform.Microsoft.Shadow(Color=#888888, Strength=5, Direction=90), - progid:DXImageTransform.Microsoft.Shadow(Color=#888888, Strength=5, Direction=180), - progid:DXImageTransform.Microsoft.Shadow(Color=#888888, Strength=5, Direction=270); -} diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/frontend/jquery.mCustomScrollbar.css --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/frontend/jquery.mCustomScrollbar.css Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,296 +0,0 @@ -/* basic scrollbar styling */ -/* vertical scrollbar */ -.mCSB_container{ - width:auto; - margin-right:30px; - overflow:hidden; -} -.mCSB_container.mCS_no_scrollbar{ - margin-right:0; -} -.mCustomScrollBox .mCSB_scrollTools{ - width:16px; - height:100%; - top:0; - right:0; -} -.mCSB_scrollTools .mCSB_draggerContainer{ - height:100%; - -webkit-box-sizing:border-box; - -moz-box-sizing:border-box; - box-sizing:border-box; -} -.mCSB_scrollTools .mCSB_buttonUp+.mCSB_draggerContainer{ - padding-bottom:40px; -} -.mCSB_scrollTools .mCSB_draggerRail{ - width:2px; - height:100%; - margin:0 auto; - -webkit-border-radius:10px; - -moz-border-radius:10px; - border-radius:10px; -} -.mCSB_scrollTools .mCSB_dragger{ - width:100%; - height:30px; -} -.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ - width:4px; - height:100%; - margin:0 auto; - -webkit-border-radius:10px; - -moz-border-radius:10px; - border-radius:10px; - text-align:center; -} -.mCSB_scrollTools .mCSB_buttonUp, -.mCSB_scrollTools .mCSB_buttonDown{ - height:20px; - overflow:hidden; - margin:0 auto; - cursor:pointer; -} -.mCSB_scrollTools .mCSB_buttonDown{ - bottom:0; - margin-top:-40px; -} -/* horizontal scrollbar */ -.mCSB_horizontal .mCSB_container{ - height:auto; - margin-right:0; - margin-bottom:30px; - overflow:hidden; -} -.mCSB_horizontal .mCSB_container.mCS_no_scrollbar{ - margin-bottom:0; -} -.mCSB_horizontal.mCustomScrollBox .mCSB_scrollTools{ - width:100%; - height:16px; - top:auto; - right:auto; - bottom:0; - left:0; - overflow:hidden; -} -.mCSB_horizontal .mCSB_scrollTools .mCSB_draggerContainer{ - height:100%; - width:auto; - -webkit-box-sizing:border-box; - -moz-box-sizing:border-box; - box-sizing:border-box; - overflow:hidden; -} -.mCSB_horizontal .mCSB_scrollTools .mCSB_buttonLeft+.mCSB_draggerContainer{ - padding-bottom:0; - padding-right:20px; -} -.mCSB_horizontal .mCSB_scrollTools .mCSB_draggerRail{ - width:100%; - height:2px; - margin:7px 0; - -webkit-border-radius:10px; - -moz-border-radius:10px; - border-radius:10px; -} -.mCSB_horizontal .mCSB_scrollTools .mCSB_dragger{ - width:30px; - height:100%; -} -.mCSB_horizontal .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ - width:100%; - height:4px; - margin:6px auto; - -webkit-border-radius:10px; - -moz-border-radius:10px; - border-radius:10px; -} -.mCSB_horizontal .mCSB_scrollTools .mCSB_buttonLeft, -.mCSB_horizontal .mCSB_scrollTools .mCSB_buttonRight{ - width:20px; - height:100%; - overflow:hidden; - margin:0 auto; - cursor:pointer; - float:left; -} -.mCSB_horizontal .mCSB_scrollTools .mCSB_buttonRight{ - right:0; - bottom:auto; - margin-left:-40px; - margin-top:-16px; - float:right; -} - -/* default scrollbar colors and backgrounds */ -.mCustomScrollBox .mCSB_scrollTools{ - opacity:0.75; -} -.mCustomScrollBox:hover .mCSB_scrollTools{ - opacity:1; -} -.mCSB_scrollTools .mCSB_draggerRail{ - background:#000; /* rgba fallback */ - background:rgba(0,0,0,0.4); - filter:"alpha(opacity=40)"; -ms-filter:"alpha(opacity=40)"; /* old ie */ -} -.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ - background:#fff; /* rgba fallback */ - background:rgba(255,255,255,0.75); - filter:"alpha(opacity=75)"; -ms-filter:"alpha(opacity=75)"; /* old ie */ -} -.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ - background:rgba(255,255,255,0.85); - filter:"alpha(opacity=85)"; -ms-filter:"alpha(opacity=85)"; /* old ie */ -} -.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, -.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ - background:rgba(255,255,255,0.9); - filter:"alpha(opacity=90)"; -ms-filter:"alpha(opacity=90)"; /* old ie */ -} -.mCSB_scrollTools .mCSB_buttonUp, -.mCSB_scrollTools .mCSB_buttonDown, -.mCSB_scrollTools .mCSB_buttonLeft, -.mCSB_scrollTools .mCSB_buttonRight{ - background-image:url(../mCSB_buttons.png); - background-repeat:no-repeat; - opacity:0.4; - filter:"alpha(opacity=40)"; -ms-filter:"alpha(opacity=40)"; /* old ie */ -} -.mCSB_scrollTools .mCSB_buttonUp{ - background-position:0 0; -} -.mCSB_scrollTools .mCSB_buttonDown{ - background-position:0 -20px; -} -.mCSB_scrollTools .mCSB_buttonLeft{ - background-position:0 -40px; -} -.mCSB_scrollTools .mCSB_buttonRight{ - background-position:0 -56px; -} -.mCSB_scrollTools .mCSB_buttonUp:hover, -.mCSB_scrollTools .mCSB_buttonDown:hover, -.mCSB_scrollTools .mCSB_buttonLeft:hover, -.mCSB_scrollTools .mCSB_buttonRight:hover{ - opacity:0.75; - filter:"alpha(opacity=75)"; -ms-filter:"alpha(opacity=75)"; /* old ie */ -} -.mCSB_scrollTools .mCSB_buttonUp:active, -.mCSB_scrollTools .mCSB_buttonDown:active, -.mCSB_scrollTools .mCSB_buttonLeft:active, -.mCSB_scrollTools .mCSB_buttonRight:active{ - opacity:0.9; - filter:"alpha(opacity=90)"; -ms-filter:"alpha(opacity=90)"; /* old ie */ -} - -/* custom styling */ -/* content_1 scrollbar */ -.content_1 .mCustomScrollBox .mCSB_scrollTools{ - padding:5px 0; - -webkit-box-sizing:border-box; - -moz-box-sizing:border-box; - box-sizing:border-box; -} -/* content_2 scrollbar */ -.content_2 .mCSB_scrollTools .mCSB_draggerRail{ - width:6px; - box-shadow:1px 1px 1px rgba(255,255,255,0.1); -} -.content_2 .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ - background:rgba(255,255,255,0.4); - filter:"alpha(opacity=40)"; -ms-filter:"alpha(opacity=40)"; /* old ie */ -} -.content_2 .mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ - background:rgba(255,255,255,0.5); - filter:"alpha(opacity=50)"; -ms-filter:"alpha(opacity=50)"; /* old ie */ -} -.content_2 .mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, -.content_2 .mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ - background:rgba(255,255,255,0.6); - filter:"alpha(opacity=60)"; -ms-filter:"alpha(opacity=60)"; /* old ie */ -} -/* content_3 scrollbar */ -.content_3 .mCustomScrollBox .mCSB_scrollTools{ - padding:10px 0; - -webkit-box-sizing:border-box; - -moz-box-sizing:border-box; - box-sizing:border-box; -} -.content_3 .mCSB_scrollTools .mCSB_draggerRail{ - width:0; - border-right:1px dashed #09C; -} -.content_3 .mCSB_scrollTools .mCSB_dragger{ - height:11px; -} -.content_3 .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ - width:11px; - -webkit-border-radius:11px; - -moz-border-radius:11px; - border-radius:11px; - background:#09C; -} -/* content_4 scrollbar */ -.content_4 .mCustomScrollBox .mCSB_scrollTools{ - padding:20px 0; - -webkit-box-sizing:border-box; - -moz-box-sizing:border-box; - box-sizing:border-box; -} -.content_4 .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ - width:8px; - -webkit-border-radius:2px; - -moz-border-radius:2px; - border-radius:2px; - background:#d0b9a0; - -webkit-box-shadow:1px 1px 5px rgba(0,0,0,0.5); - -moz-box-shadow:1px 1px 5px rgba(0,0,0,0.5); - box-shadow:1px 1px 5px rgba(0,0,0,0.5); -} -.content_4 .mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, -.content_4 .mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ - background:#dfcdb9; -} -.content_4 .mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, -.content_4 .mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ - -webkit-box-shadow:0 0 3px rgba(0,0,0,0.5); - -moz-box-shadow:0 0 3px rgba(0,0,0,0.5); - box-shadow:0 0 3px rgba(0,0,0,0.5); -} -/* content_5 scrollbar */ -.content_5 .mCustomScrollBox .mCSB_scrollTools{ - padding:0 5px; - -webkit-box-sizing:border-box; - -moz-box-sizing:border-box; - box-sizing:border-box; -} -.content_5 .mCSB_scrollTools .mCSB_draggerRail{ - background:#000; /* rgba fallback */ - background:rgba(0,0,0,0.2); -} -.content_5 .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ - height:2px; - margin:7px auto; - background:#000; /* rgba fallback */ - background:rgba(0,0,0,0.75); -} -.content_5 .mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ - background:rgba(0,0,0,0.85); -} -.content_5 .mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ - background:rgba(0,0,0,0.9); -} -.content_5 .mCSB_scrollTools .mCSB_buttonLeft{ - background-position:-100px -40px; -} -.content_5 .mCSB_scrollTools .mCSB_buttonRight{ - background-position:-100px -56px; -} -/* content_8 scrollbar */ -.content_8 .mCSB_scrollTools .mCSB_draggerRail{ - width:0px; - border-left:1px solid rgba(0,0,0,0.8); - border-right:1px solid rgba(255,255,255,0.2); -} \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/frontend/prettyPhoto.css --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/frontend/prettyPhoto.css Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,170 +0,0 @@ -div.pp_default .pp_top,div.pp_default .pp_top .pp_middle,div.pp_default .pp_top .pp_left,div.pp_default .pp_top .pp_right,div.pp_default .pp_bottom,div.pp_default .pp_bottom .pp_left,div.pp_default .pp_bottom .pp_middle,div.pp_default .pp_bottom .pp_right{height:13px} -div.pp_default .pp_top .pp_left{background:url(../../images/prettyPhoto/default/sprite.png) -78px -93px no-repeat} -div.pp_default .pp_top .pp_middle{background:url(../../images/prettyPhoto/default/sprite_x.png) top left repeat-x} -div.pp_default .pp_top .pp_right{background:url(../../images/prettyPhoto/default/sprite.png) -112px -93px no-repeat} -div.pp_default .pp_content .ppt{color:#f8f8f8} -div.pp_default .pp_content_container .pp_left{background:url(../../images/prettyPhoto/default/sprite_y.png) -7px 0 repeat-y;padding-left:13px} -div.pp_default .pp_content_container .pp_right{background:url(../../images/prettyPhoto/default/sprite_y.png) top right repeat-y;padding-right:13px} -div.pp_default .pp_next:hover{background:url(../../images/prettyPhoto/default/sprite_next.png) center right no-repeat;cursor:pointer} -div.pp_default .pp_previous:hover{background:url(../../images/prettyPhoto/default/sprite_prev.png) center left no-repeat;cursor:pointer} -div.pp_default .pp_expand{background:url(../../images/prettyPhoto/default/sprite.png) 0 -29px no-repeat;cursor:pointer;width:28px;height:28px} -div.pp_default .pp_expand:hover{background:url(../../images/prettyPhoto/default/sprite.png) 0 -56px no-repeat;cursor:pointer} -div.pp_default .pp_contract{background:url(../../images/prettyPhoto/default/sprite.png) 0 -84px no-repeat;cursor:pointer;width:28px;height:28px} -div.pp_default .pp_contract:hover{background:url(../../images/prettyPhoto/default/sprite.png) 0 -113px no-repeat;cursor:pointer} -div.pp_default .pp_close{width:30px;height:30px;background:url(../../images/prettyPhoto/default/sprite.png) 2px 1px no-repeat;cursor:pointer} -div.pp_default .pp_gallery ul li a{background:url(../../images/prettyPhoto/default/default_thumb.png) center center #f8f8f8;border:1px solid #aaa} -div.pp_default .pp_social{margin-top:7px} -div.pp_default .pp_gallery a.pp_arrow_previous,div.pp_default .pp_gallery a.pp_arrow_next{position:static;left:auto} -div.pp_default .pp_nav .pp_play,div.pp_default .pp_nav .pp_pause{background:url(../../images/prettyPhoto/default/sprite.png) -51px 1px no-repeat;height:30px;width:30px} -div.pp_default .pp_nav .pp_pause{background-position:-51px -29px} -div.pp_default a.pp_arrow_previous,div.pp_default a.pp_arrow_next{background:url(../../images/prettyPhoto/default/sprite.png) -31px -3px no-repeat;height:20px;width:20px;margin:4px 0 0} -div.pp_default a.pp_arrow_next{left:52px;background-position:-82px -3px} -div.pp_default .pp_content_container .pp_details{margin-top:5px} -div.pp_default .pp_nav{clear:none;height:30px;width:110px;position:relative} -div.pp_default .pp_nav .currentTextHolder{font-family:Georgia;font-style:italic;color:#999;font-size:11px;left:75px;line-height:25px;position:absolute;top:2px;margin:0;padding:0 0 0 10px} -div.pp_default .pp_close:hover,div.pp_default .pp_nav .pp_play:hover,div.pp_default .pp_nav .pp_pause:hover,div.pp_default .pp_arrow_next:hover,div.pp_default .pp_arrow_previous:hover{opacity:0.7} -div.pp_default .pp_description{font-size:11px;font-weight:700;line-height:14px;margin:5px 50px 5px 0} -div.pp_default .pp_bottom .pp_left{background:url(../../images/prettyPhoto/default/sprite.png) -78px -127px no-repeat} -div.pp_default .pp_bottom .pp_middle{background:url(../../images/prettyPhoto/default/sprite_x.png) bottom left repeat-x} -div.pp_default .pp_bottom .pp_right{background:url(../../images/prettyPhoto/default/sprite.png) -112px -127px no-repeat} -div.pp_default .pp_loaderIcon{background:url(../../images/prettyPhoto/default/loader.gif) center center no-repeat} -div.light_rounded .pp_top .pp_left{background:url(../../images/prettyPhoto/light_rounded/sprite.png) -88px -53px no-repeat} -div.light_rounded .pp_top .pp_right{background:url(../../images/prettyPhoto/light_rounded/sprite.png) -110px -53px no-repeat} -div.light_rounded .pp_next:hover{background:url(../../images/prettyPhoto/light_rounded/btnNext.png) center right no-repeat;cursor:pointer} -div.light_rounded .pp_previous:hover{background:url(../../images/prettyPhoto/light_rounded/btnPrevious.png) center left no-repeat;cursor:pointer} -div.light_rounded .pp_expand{background:url(../../images/prettyPhoto/light_rounded/sprite.png) -31px -26px no-repeat;cursor:pointer} -div.light_rounded .pp_expand:hover{background:url(../../images/prettyPhoto/light_rounded/sprite.png) -31px -47px no-repeat;cursor:pointer} -div.light_rounded .pp_contract{background:url(../../images/prettyPhoto/light_rounded/sprite.png) 0 -26px no-repeat;cursor:pointer} -div.light_rounded .pp_contract:hover{background:url(../../images/prettyPhoto/light_rounded/sprite.png) 0 -47px no-repeat;cursor:pointer} -div.light_rounded .pp_close{width:75px;height:22px;background:url(../../images/prettyPhoto/light_rounded/sprite.png) -1px -1px no-repeat;cursor:pointer} -div.light_rounded .pp_nav .pp_play{background:url(../../images/prettyPhoto/light_rounded/sprite.png) -1px -100px no-repeat;height:15px;width:14px} -div.light_rounded .pp_nav .pp_pause{background:url(../../images/prettyPhoto/light_rounded/sprite.png) -24px -100px no-repeat;height:15px;width:14px} -div.light_rounded .pp_arrow_previous{background:url(../../images/prettyPhoto/light_rounded/sprite.png) 0 -71px no-repeat} -div.light_rounded .pp_arrow_next{background:url(../../images/prettyPhoto/light_rounded/sprite.png) -22px -71px no-repeat} -div.light_rounded .pp_bottom .pp_left{background:url(../../images/prettyPhoto/light_rounded/sprite.png) -88px -80px no-repeat} -div.light_rounded .pp_bottom .pp_right{background:url(../../images/prettyPhoto/light_rounded/sprite.png) -110px -80px no-repeat} -div.dark_rounded .pp_top .pp_left{background:url(../../images/prettyPhoto/dark_rounded/sprite.png) -88px -53px no-repeat} -div.dark_rounded .pp_top .pp_right{background:url(../../images/prettyPhoto/dark_rounded/sprite.png) -110px -53px no-repeat} -div.dark_rounded .pp_content_container .pp_left{background:url(../../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat-y} -div.dark_rounded .pp_content_container .pp_right{background:url(../../images/prettyPhoto/dark_rounded/contentPattern.png) top right repeat-y} -div.dark_rounded .pp_next:hover{background:url(../../images/prettyPhoto/dark_rounded/btnNext.png) center right no-repeat;cursor:pointer} -div.dark_rounded .pp_previous:hover{background:url(../../images/prettyPhoto/dark_rounded/btnPrevious.png) center left no-repeat;cursor:pointer} -div.dark_rounded .pp_expand{background:url(../../images/prettyPhoto/dark_rounded/sprite.png) -31px -26px no-repeat;cursor:pointer} -div.dark_rounded .pp_expand:hover{background:url(../../images/prettyPhoto/dark_rounded/sprite.png) -31px -47px no-repeat;cursor:pointer} -div.dark_rounded .pp_contract{background:url(../../images/prettyPhoto/dark_rounded/sprite.png) 0 -26px no-repeat;cursor:pointer} -div.dark_rounded .pp_contract:hover{background:url(../../images/prettyPhoto/dark_rounded/sprite.png) 0 -47px no-repeat;cursor:pointer} -div.dark_rounded .pp_close{width:75px;height:22px;background:url(../../images/prettyPhoto/dark_rounded/sprite.png) -1px -1px no-repeat;cursor:pointer} -div.dark_rounded .pp_description{margin-right:85px;color:#fff} -div.dark_rounded .pp_nav .pp_play{background:url(../../images/prettyPhoto/dark_rounded/sprite.png) -1px -100px no-repeat;height:15px;width:14px} -div.dark_rounded .pp_nav .pp_pause{background:url(../../images/prettyPhoto/dark_rounded/sprite.png) -24px -100px no-repeat;height:15px;width:14px} -div.dark_rounded .pp_arrow_previous{background:url(../../images/prettyPhoto/dark_rounded/sprite.png) 0 -71px no-repeat} -div.dark_rounded .pp_arrow_next{background:url(../../images/prettyPhoto/dark_rounded/sprite.png) -22px -71px no-repeat} -div.dark_rounded .pp_bottom .pp_left{background:url(../../images/prettyPhoto/dark_rounded/sprite.png) -88px -80px no-repeat} -div.dark_rounded .pp_bottom .pp_right{background:url(../../images/prettyPhoto/dark_rounded/sprite.png) -110px -80px no-repeat} -div.dark_rounded .pp_loaderIcon{background:url(../../images/prettyPhoto/dark_rounded/loader.gif) center center no-repeat} -div.dark_square .pp_left,div.dark_square .pp_middle,div.dark_square .pp_right,div.dark_square .pp_content{background:#000} -div.dark_square .pp_description{color:#fff;margin:0 85px 0 0} -div.dark_square .pp_loaderIcon{background:url(../../images/prettyPhoto/dark_square/loader.gif) center center no-repeat} -div.dark_square .pp_expand{background:url(../../images/prettyPhoto/dark_square/sprite.png) -31px -26px no-repeat;cursor:pointer} -div.dark_square .pp_expand:hover{background:url(../../images/prettyPhoto/dark_square/sprite.png) -31px -47px no-repeat;cursor:pointer} -div.dark_square .pp_contract{background:url(../../images/prettyPhoto/dark_square/sprite.png) 0 -26px no-repeat;cursor:pointer} -div.dark_square .pp_contract:hover{background:url(../../images/prettyPhoto/dark_square/sprite.png) 0 -47px no-repeat;cursor:pointer} -div.dark_square .pp_close{width:75px;height:22px;background:url(../../images/prettyPhoto/dark_square/sprite.png) -1px -1px no-repeat;cursor:pointer} -div.dark_square .pp_nav{clear:none} -div.dark_square .pp_nav .pp_play{background:url(../../images/prettyPhoto/dark_square/sprite.png) -1px -100px no-repeat;height:15px;width:14px} -div.dark_square .pp_nav .pp_pause{background:url(../../images/prettyPhoto/dark_square/sprite.png) -24px -100px no-repeat;height:15px;width:14px} -div.dark_square .pp_arrow_previous{background:url(../../images/prettyPhoto/dark_square/sprite.png) 0 -71px no-repeat} -div.dark_square .pp_arrow_next{background:url(../../images/prettyPhoto/dark_square/sprite.png) -22px -71px no-repeat} -div.dark_square .pp_next:hover{background:url(../../images/prettyPhoto/dark_square/btnNext.png) center right no-repeat;cursor:pointer} -div.dark_square .pp_previous:hover{background:url(../../images/prettyPhoto/dark_square/btnPrevious.png) center left no-repeat;cursor:pointer} -div.light_square .pp_expand{background:url(../../images/prettyPhoto/light_square/sprite.png) -31px -26px no-repeat;cursor:pointer} -div.light_square .pp_expand:hover{background:url(../../images/prettyPhoto/light_square/sprite.png) -31px -47px no-repeat;cursor:pointer} -div.light_square .pp_contract{background:url(../../images/prettyPhoto/light_square/sprite.png) 0 -26px no-repeat;cursor:pointer} -div.light_square .pp_contract:hover{background:url(../../images/prettyPhoto/light_square/sprite.png) 0 -47px no-repeat;cursor:pointer} -div.light_square .pp_close{width:75px;height:22px;background:url(../../images/prettyPhoto/light_square/sprite.png) -1px -1px no-repeat;cursor:pointer} -div.light_square .pp_nav .pp_play{background:url(../../images/prettyPhoto/light_square/sprite.png) -1px -100px no-repeat;height:15px;width:14px} -div.light_square .pp_nav .pp_pause{background:url(../../images/prettyPhoto/light_square/sprite.png) -24px -100px no-repeat;height:15px;width:14px} -div.light_square .pp_arrow_previous{background:url(../../images/prettyPhoto/light_square/sprite.png) 0 -71px no-repeat} -div.light_square .pp_arrow_next{background:url(../../images/prettyPhoto/light_square/sprite.png) -22px -71px no-repeat} -div.light_square .pp_next:hover{background:url(../../images/prettyPhoto/light_square/btnNext.png) center right no-repeat;cursor:pointer} -div.light_square .pp_previous:hover{background:url(../../images/prettyPhoto/light_square/btnPrevious.png) center left no-repeat;cursor:pointer} -div.facebook .pp_top .pp_left{background:url(../../images/prettyPhoto/facebook/sprite.png) -88px -53px no-repeat} -div.facebook .pp_top .pp_middle{background:url(../../images/prettyPhoto/facebook/contentPatternTop.png) top left repeat-x} -div.facebook .pp_top .pp_right{background:url(../../images/prettyPhoto/facebook/sprite.png) -110px -53px no-repeat} -div.facebook .pp_content_container .pp_left{background:url(../../images/prettyPhoto/facebook/contentPatternLeft.png) top left repeat-y} -div.facebook .pp_content_container .pp_right{background:url(../../images/prettyPhoto/facebook/contentPatternRight.png) top right repeat-y} -div.facebook .pp_expand{background:url(../../images/prettyPhoto/facebook/sprite.png) -31px -26px no-repeat;cursor:pointer} -div.facebook .pp_expand:hover{background:url(../../images/prettyPhoto/facebook/sprite.png) -31px -47px no-repeat;cursor:pointer} -div.facebook .pp_contract{background:url(../../images/prettyPhoto/facebook/sprite.png) 0 -26px no-repeat;cursor:pointer} -div.facebook .pp_contract:hover{background:url(../../images/prettyPhoto/facebook/sprite.png) 0 -47px no-repeat;cursor:pointer} -div.facebook .pp_close{width:22px;height:22px;background:url(../../images/prettyPhoto/facebook/sprite.png) -1px -1px no-repeat;cursor:pointer} -div.facebook .pp_description{margin:0 37px 0 0} -div.facebook .pp_loaderIcon{background:url(../../images/prettyPhoto/facebook/loader.gif) center center no-repeat} -div.facebook .pp_arrow_previous{background:url(../../images/prettyPhoto/facebook/sprite.png) 0 -71px no-repeat;height:22px;margin-top:0;width:22px} -div.facebook .pp_arrow_previous.disabled{background-position:0 -96px;cursor:default} -div.facebook .pp_arrow_next{background:url(../../images/prettyPhoto/facebook/sprite.png) -32px -71px no-repeat;height:22px;margin-top:0;width:22px} -div.facebook .pp_arrow_next.disabled{background-position:-32px -96px;cursor:default} -div.facebook .pp_nav{margin-top:0} -div.facebook .pp_nav p{font-size:15px;padding:0 3px 0 4px} -div.facebook .pp_nav .pp_play{background:url(../../images/prettyPhoto/facebook/sprite.png) -1px -123px no-repeat;height:22px;width:22px} -div.facebook .pp_nav .pp_pause{background:url(../../images/prettyPhoto/facebook/sprite.png) -32px -123px no-repeat;height:22px;width:22px} -div.facebook .pp_next:hover{background:url(../../images/prettyPhoto/facebook/btnNext.png) center right no-repeat;cursor:pointer} -div.facebook .pp_previous:hover{background:url(../../images/prettyPhoto/facebook/btnPrevious.png) center left no-repeat;cursor:pointer} -div.facebook .pp_bottom .pp_left{background:url(../../images/prettyPhoto/facebook/sprite.png) -88px -80px no-repeat} -div.facebook .pp_bottom .pp_middle{background:url(../../images/prettyPhoto/facebook/contentPatternBottom.png) top left repeat-x} -div.facebook .pp_bottom .pp_right{background:url(../../images/prettyPhoto/facebook/sprite.png) -110px -80px no-repeat} -div.pp_pic_holder a:focus{outline:none} -div.pp_overlay{background:#000;display:none;left:0;position:absolute;top:0;width:100%;z-index:9500} -div.pp_pic_holder{display:none;position:absolute;width:100px;z-index:10000} -.pp_content{height:40px;min-width:40px} -* html .pp_content{width:40px} -.pp_content_container{position:relative;text-align:left;width:100%} -.pp_content_container .pp_left{padding-left:20px} -.pp_content_container .pp_right{padding-right:20px} -.pp_content_container .pp_details{float:left;margin:10px 0 2px} -.pp_description{display:none;margin:0} -.pp_social{float:left;margin:0} -.pp_social .facebook{float:left;margin-left:5px;width:55px;overflow:hidden} -.pp_social .twitter{float:left} -.pp_nav{clear:right;float:left;margin:3px 10px 0 0} -.pp_nav p{float:left;white-space:nowrap;margin:2px 4px} -.pp_nav .pp_play,.pp_nav .pp_pause{float:left;margin-right:4px;text-indent:-10000px} -a.pp_arrow_previous,a.pp_arrow_next{display:block;float:left;height:15px;margin-top:3px;overflow:hidden;text-indent:-10000px;width:14px} -.pp_hoverContainer{position:absolute;top:0;width:100%;z-index:2000} -.pp_gallery{display:none;left:50%;margin-top:-50px;position:absolute;z-index:10000} -.pp_gallery div{float:left;overflow:hidden;position:relative} -.pp_gallery ul{float:left;height:35px;position:relative;white-space:nowrap;margin:0 0 0 5px;padding:0} -.pp_gallery ul a{border:1px rgba(0,0,0,0.5) solid;display:block;float:left;height:33px;overflow:hidden} -.pp_gallery ul a img{border:0} -.pp_gallery li{display:block;float:left;margin:0 5px 0 0;padding:0} -.pp_gallery li.default a{background:url(../../images/prettyPhoto/facebook/default_thumbnail.gif) 0 0 no-repeat;display:block;height:33px;width:50px} -.pp_gallery .pp_arrow_previous,.pp_gallery .pp_arrow_next{margin-top:7px!important} -a.pp_next{background:url(../../images/prettyPhoto/light_rounded/btnNext.png) 10000px 10000px no-repeat;display:block;float:right;height:100%;text-indent:-10000px;width:49%} -a.pp_previous{background:url(../../images/prettyPhoto/light_rounded/btnNext.png) 10000px 10000px no-repeat;display:block;float:left;height:100%;text-indent:-10000px;width:49%} -a.pp_expand,a.pp_contract{cursor:pointer;display:none;height:20px;position:absolute;right:30px;text-indent:-10000px;top:10px;width:20px;z-index:20000} -a.pp_close{position:absolute;right:0;top:0;display:block;line-height:22px;text-indent:-10000px} -.pp_loaderIcon{display:block;height:24px;left:50%;position:absolute;top:50%;width:24px;margin:-12px 0 0 -12px} -#pp_full_res{line-height:1!important} -#pp_full_res .pp_inline{text-align:left} -#pp_full_res .pp_inline p{margin:0 0 15px} -div.ppt{color:#fff;display:none;font-size:17px;z-index:9999;margin:0 0 5px 15px} -div.pp_default .pp_content,div.light_rounded .pp_content{background-color:#fff} -div.pp_default #pp_full_res .pp_inline,div.light_rounded .pp_content .ppt,div.light_rounded #pp_full_res .pp_inline,div.light_square .pp_content .ppt,div.light_square #pp_full_res .pp_inline,div.facebook .pp_content .ppt,div.facebook #pp_full_res .pp_inline{color:#000} -div.pp_default .pp_gallery ul li a:hover,div.pp_default .pp_gallery ul li.selected a,.pp_gallery ul a:hover,.pp_gallery li.selected a{border-color:#fff} -div.pp_default .pp_details,div.light_rounded .pp_details,div.dark_rounded .pp_details,div.dark_square .pp_details,div.light_square .pp_details,div.facebook .pp_details{position:relative} -div.light_rounded .pp_top .pp_middle,div.light_rounded .pp_content_container .pp_left,div.light_rounded .pp_content_container .pp_right,div.light_rounded .pp_bottom .pp_middle,div.light_square .pp_left,div.light_square .pp_middle,div.light_square .pp_right,div.light_square .pp_content,div.facebook .pp_content{background:#fff} -div.light_rounded .pp_description,div.light_square .pp_description{margin-right:85px} -div.light_rounded .pp_gallery a.pp_arrow_previous,div.light_rounded .pp_gallery a.pp_arrow_next,div.dark_rounded .pp_gallery a.pp_arrow_previous,div.dark_rounded .pp_gallery a.pp_arrow_next,div.dark_square .pp_gallery a.pp_arrow_previous,div.dark_square .pp_gallery a.pp_arrow_next,div.light_square .pp_gallery a.pp_arrow_previous,div.light_square .pp_gallery a.pp_arrow_next{margin-top:12px!important} -div.light_rounded .pp_arrow_previous.disabled,div.dark_rounded .pp_arrow_previous.disabled,div.dark_square .pp_arrow_previous.disabled,div.light_square .pp_arrow_previous.disabled{background-position:0 -87px;cursor:default} -div.light_rounded .pp_arrow_next.disabled,div.dark_rounded .pp_arrow_next.disabled,div.dark_square .pp_arrow_next.disabled,div.light_square .pp_arrow_next.disabled{background-position:-22px -87px;cursor:default} -div.light_rounded .pp_loaderIcon,div.light_square .pp_loaderIcon{background:url(../../images/prettyPhoto/light_rounded/loader.gif) center center no-repeat} -div.dark_rounded .pp_top .pp_middle,div.dark_rounded .pp_content,div.dark_rounded .pp_bottom .pp_middle{background:url(../../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat} -div.dark_rounded .currentTextHolder,div.dark_square .currentTextHolder{color:#c4c4c4} -div.dark_rounded #pp_full_res .pp_inline,div.dark_square #pp_full_res .pp_inline{color:#fff} -.pp_top,.pp_bottom{height:20px;position:relative} -* html .pp_top,* html .pp_bottom{padding:0 20px} -.pp_top .pp_left,.pp_bottom .pp_left{height:20px;left:0;position:absolute;width:20px} -.pp_top .pp_middle,.pp_bottom .pp_middle{height:20px;left:20px;position:absolute;right:20px} -* html .pp_top .pp_middle,* html .pp_bottom .pp_middle{left:0;position:static} -.pp_top .pp_right,.pp_bottom .pp_right{height:20px;left:auto;position:absolute;right:0;top:0;width:20px} -.pp_fade,.pp_gallery li.default a img{display:none} \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/frontend/ptsans/pts55f-webfont.eot Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/frontend/ptsans/pts55f-webfont.eot has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/frontend/ptsans/pts55f-webfont.svg --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/frontend/ptsans/pts55f-webfont.svg Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,242 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/frontend/ptsans/pts55f-webfont.ttf Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/frontend/ptsans/pts55f-webfont.ttf has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/frontend/ptsans/pts55f-webfont.woff Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/frontend/ptsans/pts55f-webfont.woff has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/frontend/timeline.css --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/frontend/timeline.css Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,544 +0,0 @@ - -@font-face { - font-family: 'BebasNeueRegular'; - src: url('bebas/bebasneue-webfont.eot'); - src: url('bebas/bebasneue-webfont.eot?#iefix') format('embedded-opentype'), - url('bebas/bebasneue-webfont.woff') format('woff'), - url('bebas/bebasneue-webfont.ttf') format('truetype'), - url('bebas/bebasneue-webfont.svg#BebasNeueRegular') format('svg'); - font-weight: normal; - font-style: normal; - -} - -/* --- IMAGE --- */ - -.timeline a.timeline_rollover_bottom, -.timeline a.timeline_rollover_right, -.timeline a.timeline_rollover_top, -.timeline a.timeline_rollover_left -{ - margin:0; - display:block; - position:relative; - overflow:hidden; -} - -.timeline a.timeline_rollover_bottom img, -.timeline a.timeline_rollover_right img, -.timeline a.timeline_rollover_top img, -.timeline a.timeline_rollover_left img { - display:block; -} -.timeline .image_roll_zoom { - display:inline-block; - width:100%; - height:100%; - position:absolute; - background:url(../images/zoomIn.png) no-repeat center center; -} -.timeline .image_roll_glass { - display:none; - width:100%; - height:100%; - position:absolute; - top:0; - left:0; - background:url('../images/glass.png') repeat; -} - - -.timeline, -#content .timeline { - height:0; - overflow:hidden; - position:relative; -} -.timelineLoader { - width:100%; - text-align:center; - padding:150px 0; -} - - -/* fixed line holder */ -.timeline .timeline_line, -#content .timeline .timeline_line { - margin-top:10px; - margin-bottom:10px; - width:100%; -} - -/* full (including months that are not shown) line holder */ -.timeline .t_line_holder, -#content .timeline .t_line_holder { - height:80px; - background:url('../images/timeline/light/line.jpg') repeat-x 0px 39px; -} - -.timeline.darkLine .t_line_holder, -#content .timeline.darkLine .t_line_holder { - background:url('../images/timeline/dark/line.jpg') repeat-x 0px 39px; -} - -/* 2 months are stored in one view */ -.timeline .t_line_view, -#content .timeline .t_line_view { - height:20px; - width:100%; -} - -/* holder for year number */ -.timeline h3.t_line_year, -#content .timeline h3.t_line_year { - font-family: 'BebasNeueRegular'; - font-weight:normal; - font-size:22px; - margin:0; - color:#545454; -} - -/* holder for 1 month (constist of nodes and month caption) - we use borders to separate months thats why it has width 2px less then 50% */ -.timeline .t_line_m, -#content .timeline .t_line_m { - margin-top:35px; - height:10px; - border-left:1px solid #545454; - border-right:1px solid #545454; - width:448px; -} - -/* month on the right side - has left set at 459 so border would overlap border from first element (to evade duplicated borders) */ -.timeline .t_line_m.right, -#content .timeline .t_line_m.right { - left:449px; - width:449px; -} - -/* month caption */ -.timeline h4.t_line_month, -#content .timeline h4.t_line_month { - font-family: 'BebasNeueRegular'; - font-weight:normal; - font-size:20px; - margin:-30px 0 0; - color:#545454; -} - -/* used in responsive layout when only one month is shown (it is span containing year) */ -.t_line_month_year, -#content .t_line_month_year { - display:none; -} - -/* node on the timeline */ -.timeline a.t_line_node, -#content .timeline a.t_line_node { - text-decoration:none; - padding:38px 0 4px; - height:10px; - font-size:12px; - top:-25px; - background:url('../images/timeline/light/dot.png') no-repeat center 24px; - color:#141817; -} -.timeline.darkLine a.t_line_node, -#content .timeline.darkLine a.t_line_node { - background:url('../images/timeline/dark/dot.png') no-repeat center 24px; -} - -.timeline a.t_line_node:hover, -#content .timeline a.t_line_node:hover { - background:url('../images/timeline/light/dot-rollover.png') no-repeat center 24px; -} - -.timeline.darkLine a.t_line_node:hover, -#content .timeline.darkLine a.t_line_node:hover { - background:url('../images/timeline/dark/dot-rollover.png') no-repeat center 24px; -} -.timeline a.t_line_node.active, -#content .timeline a.t_line_node.active { - background:url('../images/timeline/light/dot-selected.png') no-repeat center 24px; -} - -.timeline.darkLine a.t_line_node.active, -#content .timeline.darkLine a.t_line_node.active { - background:url('../images/timeline/dark/dot-selected.png') no-repeat center 24px; -} - -/* node description */ -.timeline .t_node_desc, -#content .timeline .t_node_desc { - background: rgb(26,134,172); - opacity:0.9; - filter:alpha(opacity=90); - top:0; - color:#fff; - padding:1px 5px; -} - -/* descriptions on right side go from right to left */ -.timeline .t_node_desc.pos_right, -#content .timeline .t_node_desc.pos_right { - right:0; -} - -/* line arrow left */ -.timeline #t_line_left, -#content .timeline #t_line_left { - cursor:pointer; - left:-30px; - top:30px; - width:14px; - height:19px; - background:url('../images/timeline/light/arrow.png') no-repeat left top; -} -.timeline.darkLine #t_line_left, -#content .timeline.darkLine #t_line_left { - background:url('../images/timeline/dark/arrow.png') no-repeat left bottom; -} -.timeline #t_line_left:hover, -#content .timeline #t_line_left:hover { - background:url('../images/timeline/light/arrow.png') no-repeat left bottom; -} -.timeline.darkLine #t_line_left:hover, -#content .timeline.darkLine #t_line_left:hover { - background:url('../images/timeline/dark/arrow.png') no-repeat left top; -} - -/* line arrow right */ -.timeline #t_line_right, -#content .timeline #t_line_right { - cursor:pointer; - right:-30px; - top:30px; - width:14px; - height:19px; - background:url('../images/timeline/light/arrow.png') no-repeat right top; -} -.timeline.darkLine #t_line_right, -#content .timeline.darkLine #t_line_right { - background:url('../images/timeline/dark/arrow.png') no-repeat right bottom; -} -.timeline #t_line_right:hover, -#content .timeline #t_line_right:hover { - background:url('../images/timeline/light/arrow.png') no-repeat right bottom; -} -.timeline.darkLine #t_line_right:hover, -#content .timeline.darkLine #t_line_right:hover { - background:url('../images/timeline/dark/arrow.png') no-repeat right top; -} - -/* items container */ -.timeline .timeline_items, -#content .timeline .timeline_items { - padding:10px 0; -} - -/* single item (margines set from javascript) */ -.timeline .item, -#content .timeline .item { - height:380px; - text-align:center; - background:url('../images/timeline/light/background-white.jpg') repeat; - color:#545454; - -moz-box-shadow: -3px 1px 6px rgba(0,0,0,0.4); - -webkit-box-shadow: -3px 1px 6px rgba(0,0,0,0.4); - box-shadow: -3px 1px 6px rgba(0,0,0,0.4); - width:200px; -} -.timeline .item.item_node_hover, -#content .timeline .item.item_node_hover { - -moz-box-shadow: 0px 0px 10px rgba(0,0,0,0.9); - -webkit-box-shadow: 0px 0px 10px rgba(0,0,0,0.9); - box-shadow: 0px 0px 10px rgba(0,0,0,0.9); -} -/* ----- content - non-plugin elements ----- */ -.timeline .item img, -#content .timeline .item img { - margin:0; - padding:0; - border:0; -} - -.timeline .con_borderImage, -#content .timeline .con_borderImage { - border:0; - border-bottom:5px solid #1a86ac; -} - -.timeline .item span, -#content .timeline .item span{ - display:block; - margin:0px 20px 10px; -} -.timeline .item .read_more, -#content .timeline .item .read_more { - position:absolute; - bottom:15px; - right:0px; - padding:2px 8px 2px 10px; - font-family: 'BebasNeueRegular' !important; - font-weight:normal !important; - font-size:20px !important; - line-height:20px !important; - color:#ffffff !important; - background: rgba(0,0,0,0.35); - cursor:pointer; -} -.timeline .item .read_more:hover, -#content .timeline .item .read_more:hover { - background:rgb(26,134,172); -} -/* ----------------------------------------- */ - -/* item details (margines set from javascript) */ -.timeline .item_open, -#content .timeline .item_open { - height:380px; - background:url('../images/timeline/light/background.jpg') repeat; - position:relative; - color:#545454; - z-index:2; - -moz-box-shadow: 0px 0px 6px rgba(0,0,0,0.4); - -webkit-box-shadow: 0px 0px 6px rgba(0,0,0,0.4); - box-shadow: 0px 0px 6px rgba(0,0,0,0.4); - width:490px; - -} - -/* item details content wrapper (used for animation - shuld have same width as .item_open) */ -.timeline .item_open_cwrapper, -#content .timeline .item_open_cwrapper { - width:490px; - height:100%; -} - -.timeline .item_open_content, -#content .timeline .item_open_content { - width:100%; - height:100%; - position:relative; -} - -.timeline .item_open_content .ajaxloader, -#content .timeline .item_open_content .ajaxloader { - position:absolute; - top:50%; - left:50%; - margin:-10px 0 0 -100px; - -} - - - -/* ----- content - non-plugin elements ----- */ -.timeline .timeline_open_content, -#content .timeline .timeline_open_content { - padding:15px 10px 15px 15px ; -} - -.timeline .item_open h2, -#content .timeline .item_open h2 { - margin-top:10px; - padding-top:0; - font-size:28px; -} -.timeline .item_open .t_close, -#content .timeline .item_open .t_close { - position:absolute; - top:10px; - right:10px; - padding:2px 8px 2px 10px; - font-family: 'BebasNeueRegular' !important; - font-weight:normal !important; - font-size:20px !important; - line-height:20px !important; - color:#ffffff !important; - background: rgba(0,0,0,0.25); - cursor:pointer; - z-index:3; -} -.timeline .item_open .t_close:hover, -#content .timeline .item_open .t_close:hover { - background:rgb(26,134,172); -} -/* ----------------------------------------- */ - -/* left/right controles */ -.timeline .t_controles, -#content .timeline .t_controles { - margin:10px auto; - text-align:center; -} -.timeline .t_left, -.timeline .t_right, -#content .timeline .t_left, -#content .timeline .t_right { - display:inline-block; - height:50px; - width:29px; - margin:10px; - cursor:pointer; -} -.timeline .t_left, -.timeline .t_left:hover:active, -#content .timeline .t_left, -#content .timeline .t_left:hover:active { - background: url('../images/timeline/light/big-arrow.png') no-repeat left top; -} -.timeline .t_left:hover, -#content .timeline .t_left:hover { - background: url('../images/timeline/light/big-arrow.png') no-repeat left bottom; -} -.timeline.darkNav .t_left, -.timeline.darkNav .t_left:hover:active, -#content .timeline.darkNav .t_left, -#content .timeline.darkNav .t_left:hover:active { - background: url('../images/timeline/dark/big-arrow.png') no-repeat left bottom; -} -.timeline.darkNav .t_left:hover, -#content .timeline.darkNav .t_left:hover { - background: url('../images/timeline/dark/big-arrow.png') no-repeat left top; -} - -.timeline .t_right, -.timeline .t_right:hover:active, -#content .timeline .t_right, -#content .timeline .t_right:hover:active{ - background: url('../images/timeline/light/big-arrow.png') no-repeat right top; -} - -.timeline .t_right:hover, -#content .timeline .t_right:hover { - background: url('../images/timeline/light/big-arrow.png') no-repeat right bottom; -} - -.timeline.darkNav .t_right, -.timeline.darkNav .t_right:hover:active, -#content .timeline.darkNav .t_right, -#content .timeline.darkNav .t_right:hover:active{ - background: url('../images/timeline/dark/big-arrow.png') no-repeat right bottom; -} - -.timeline.darkNav .t_right:hover, -#content .timeline.darkNav .t_right:hover { - background: url('../images/timeline/dark/big-arrow.png') no-repeat right top; -} - -/* -----------------------------------------------------------------------*/ -/* ------------------------------ RESPONSIVE -----------------------------*/ -/* -----------------------------------------------------------------------*/ - - - -/* --- 768px --- */ -@media screen and (max-width:980px) { - - .timeline .timeline_line, - #content .timeline .timeline_line { - width:680px !important; - } - - .timeline .t_line_view, - #content .timeline .t_line_view { - width:680px !important; - } - - .timeline .t_line_m, - #content .timeline .t_line_m { - width: 338px !important; - } - .timeline .t_line_m.right, - #content .timeline .t_line_m.right { - left: 339px !important; - width: 339px !important; - } -} - - -/* --- 610px --- */ -@media screen and (max-width:768px) { - - .timeline .timeline_line, - #content .timeline .timeline_line { - width:530px !important; - } - - .timeline .t_line_view, - #content .timeline .t_line_view { - width:1060px !important; - } - - .timeline .t_line_m, - #content .timeline .t_line_m { - width: 528px !important; - } - .timeline .t_line_m.right, - #content .timeline .t_line_m.right { - left: 530px !important; - width: 528px !important; - } - .timeline .t_line_year, - #content .timeline .t_line_year { - opacity:0 !important; - filter:alpha(opacity=0) !important; - } - .timeline .t_line_month_year, - #content .timeline .t_line_month_year { - display:inline !important; - } - - .timeline .t_line_node span, - #content .timeline .t_line_node span { - - } - .timeline .t_node_desc, - #content .timeline .t_node_desc { - font-size:8px !important; - } - .timeline .t_node_desc.pos_right, - #content .timeline .t_node_desc.pos_right { - right:auto !important; - left:0 !important; - } -} - - -/* --- 300px --- */ -@media screen and (max-width:610px) { - .timeline .timeline_line, - #content .timeline .timeline_line { - width:220px !important; - } - - .timeline .t_line_view, - #content .timeline .t_line_view { - width:440px !important; - } - - .timeline .t_line_m, - #content .timeline .t_line_m { - width: 218px !important; - } - .timeline .t_line_m.right, - #content .timeline .t_line_m.right { - left: 220px !important; - width: 218px !important; - } - - .timeline .item_open, - #content .timeline .item_open { - width:260px !important; - } - .timeline .item_open img, - #content .timeline .item_open img { - max-width:260px !important; - } - .timeline .item_open_cwrapper, - #content .timeline .item_open_cwrapper { - width:260px !important; - } -} - - diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/glass.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/glass.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/dark/arrow.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/dark/arrow.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/dark/background-blue.jpg Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/dark/background-blue.jpg has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/dark/background-gray.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/dark/background-gray.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/dark/big-arrow.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/dark/big-arrow.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/dark/dot-rollover.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/dark/dot-rollover.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/dark/dot-selected.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/dark/dot-selected.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/dark/dot.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/dark/dot.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/dark/line.jpg Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/dark/line.jpg has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/light/arrow.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/light/arrow.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/light/background-white.jpg Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/light/background-white.jpg has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/light/background.jpg Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/light/background.jpg has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/light/bar.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/light/bar.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/light/big-arrow.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/light/big-arrow.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/light/dot-rollover.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/light/dot-rollover.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/light/dot-selected.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/light/dot-selected.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/light/dot.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/light/dot.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/light/line.jpg Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/timeline/light/line.jpg has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/zoomIn.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/images/zoomIn.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/loadingAnimation.gif Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/loadingAnimation.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/macFFBgHack.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/macFFBgHack.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/tb-close.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/tb-close.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/thickbox.css --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/css/thickbox.css Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,163 +0,0 @@ - -/* ----------------------------------------------------------------------------------------------------------------*/ -/* ---------->>> thickbox specific link and font settings <<<------------------------------------------------------*/ -/* ----------------------------------------------------------------------------------------------------------------*/ -#TBct_window { - font: 12px "Lucida Grande", Verdana, Arial, sans-serif; - color: #333333; -} - -#TBct_secondLine { - font: 10px "Lucida Grande", Verdana, Arial, sans-serif; - color:#666666; -} - -#TBct_window a:link {color: #666666;} -#TBct_window a:visited {color: #666666;} -#TBct_window a:hover {color: #000;} -#TBct_window a:active {color: #666666;} -#TBct_window a:focus{color: #666666;} - -/* ----------------------------------------------------------------------------------------------------------------*/ -/* ---------->>> thickbox settings <<<-----------------------------------------------------------------------------*/ -/* ----------------------------------------------------------------------------------------------------------------*/ -#TBct_overlay { - position: fixed; - z-index:100; - top: 0px; - left: 0px; - height:100%; - width:100%; -} - -.TBct_overlayMacFFBGHack {background: url(macFFBgHack.png) repeat;} -.TBct_overlayBG { - background-color:#000; - -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=75)"; - filter:alpha(opacity=75); - -moz-opacity: 0.75; - opacity: 0.75; -} - -* html #TBct_overlay { /* ie6 hack */ - position: absolute; - height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'); -} - -#TBct_window { - position: fixed; - background: #ffffff; - z-index: 102; - color:#000000; - visibility: hidden; - text-align:left; - top:50%; - left:50%; - border: 1px solid #555; - -moz-box-shadow: rgba(0,0,0,1) 0 4px 30px; - -webkit-box-shadow: rgba(0,0,0,1) 0 4px 30px; - -khtml-box-shadow: rgba(0,0,0,1) 0 4px 30px; - box-shadow: rgba(0,0,0,1) 0 4px 30px; -} - -* html #TBct_window { /* ie6 hack */ -position: absolute; -margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBctWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px'); -} - -#TBct_window img#TBct_Image { - display:block; - margin: 15px 0 0 15px; - border-right: 1px solid #ccc; - border-bottom: 1px solid #ccc; - border-top: 1px solid #666; - border-left: 1px solid #666; -} - -#TBct_caption{ - height:25px; - padding:7px 30px 10px 25px; - float:left; -} - -#TBct_closeWindow{ - height:25px; - padding:11px 25px 10px 0; - float:right; -} - -#TBct_closeAjaxWindow{ - padding:6px 10px 0; - text-align:right; - float:right; -} - -#TBct_ajaxWindowTitle{ - float:left; - padding:6px 10px 0; - color:#fff; -} - -#TBct_title{ - background-color:#222222; - height:27px; -} - -#TBct_ajaxContent{ - clear:both; - padding:2px 15px 15px 15px; - overflow:auto; - text-align:left; - line-height:1.4em; -} - -#TBct_ajaxContent.TBct_modal{ - padding:15px; -} - -#TBct_ajaxContent p{ - padding:5px 0px 5px 0px; -} - -#TBct_load{ - position: fixed; - display:none; - z-index:103; - top: 50%; - left: 50%; - background-color: #E8E8E8; - border: 1px solid #555; - margin: -45px 0pt 0pt -125px; - padding: 40px 15px 15px; -} - -* html #TBct_load { /* ie6 hack */ -position: absolute; -margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBctWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px'); -} - -#TBct_HideSelect{ - z-index:99; - position:fixed; - top: 0; - left: 0; - background-color:#fff; - border:none; - filter:alpha(opacity=0); - -moz-opacity: 0; - opacity: 0; - height:100%; - width:100%; -} - -* html #TBct_HideSelect { /* ie6 hack */ - position: absolute; - height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'); -} - -#TBct_iframeContent{ - clear:both; - border:none; - margin-bottom:-1px; - _margin-bottom:1px; -} diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/ajax-loader.gif Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/ajax-loader.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/loadingAnimation.gif Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/loadingAnimation.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/no_image.jpg Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/no_image.jpg has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/dark_rounded/btnNext.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/dark_rounded/btnNext.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/dark_rounded/btnPrevious.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/dark_rounded/btnPrevious.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/dark_rounded/contentPattern.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/dark_rounded/contentPattern.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/dark_rounded/default_thumbnail.gif Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/dark_rounded/default_thumbnail.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/dark_rounded/loader.gif Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/dark_rounded/loader.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/dark_rounded/sprite.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/dark_rounded/sprite.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/dark_square/btnNext.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/dark_square/btnNext.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/dark_square/btnPrevious.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/dark_square/btnPrevious.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/dark_square/contentPattern.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/dark_square/contentPattern.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/dark_square/default_thumbnail.gif Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/dark_square/default_thumbnail.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/dark_square/loader.gif Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/dark_square/loader.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/dark_square/sprite.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/dark_square/sprite.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/default/default_thumb.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/default/default_thumb.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/default/loader.gif Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/default/loader.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/default/sprite.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/default/sprite.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/default/sprite_next.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/default/sprite_next.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/default/sprite_prev.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/default/sprite_prev.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/default/sprite_x.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/default/sprite_x.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/default/sprite_y.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/default/sprite_y.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/facebook/btnNext.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/facebook/btnNext.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/facebook/btnPrevious.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/facebook/btnPrevious.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/facebook/contentPatternBottom.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/facebook/contentPatternBottom.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/facebook/contentPatternLeft.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/facebook/contentPatternLeft.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/facebook/contentPatternRight.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/facebook/contentPatternRight.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/facebook/contentPatternTop.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/facebook/contentPatternTop.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/facebook/default_thumbnail.gif Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/facebook/default_thumbnail.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/facebook/loader.gif Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/facebook/loader.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/facebook/sprite.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/facebook/sprite.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/light_rounded/btnNext.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/light_rounded/btnNext.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/light_rounded/btnPrevious.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/light_rounded/btnPrevious.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/light_rounded/default_thumbnail.gif Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/light_rounded/default_thumbnail.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/light_rounded/loader.gif Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/light_rounded/loader.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/light_rounded/sprite.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/light_rounded/sprite.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/light_square/btnNext.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/light_square/btnNext.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/light_square/btnPrevious.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/light_square/btnPrevious.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/light_square/default_thumbnail.gif Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/light_square/default_thumbnail.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/light_square/loader.gif Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/light_square/loader.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/light_square/sprite.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/prettyPhoto/light_square/sprite.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/tb-close.png Binary file wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/images/tb-close.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/js/ctimeline_admin.js --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/js/ctimeline_admin.js Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,509 +0,0 @@ -(function($){ -$(document).ready(function(){ - - // COLORPICKER - var colPickerOn = false, - colPickerShow = false, - pluginUrl = $('#plugin-url').val(), - timthumb = pluginUrl + 'timthumb/timthumb.php'; - // colorpicker field - $('.cw-color-picker').each(function(){ - var $this = $(this), - id = $this.attr('rel'); - - $this.farbtastic('#' + id); - $this.click(function(){ - $this.show(); - }); - $('#' + id).click(function(){ - $('.cw-color-picker:visible').hide(); - $('#' + id + '-picker').show(); - colPickerOn = true; - colPickerShow = true; - }); - $this.click(function(){ - colPickerShow = true; - }); - - }); - $('body').click(function(){ - if(colPickerShow) colPickerShow = false; - else { - colPickerOn = false; - $('.cw-color-picker:visible').hide(); - } - }); - - // IMAGE UPLOAD - var thickboxId = '', - thickItem = false; - - // backgorund images - $('.cw-image-upload').click(function(e) { - e.preventDefault(); - thickboxId = '#' + $(this).attr('id'); - formfield = $(thickboxId + '-input').attr('name'); - tb_show('', 'media-upload.php?type=image&TB_iframe=true'); - return false; - }); - - - window.send_to_editor = function(html) { - imgurl = $('img',html).attr('src'); - $(thickboxId + '-input').val(imgurl); - if (thickItem) { - thickItem = false; - $(thickboxId).attr('src', timthumb + '?src=' + imgurl + '&w=258&h=50'); - } - else { - $(thickboxId).css('background', 'url('+imgurl+') repeat'); - } - tb_remove(); - } - - $('.remove-image').click(function(e){ - e.preventDefault(); - $(this).parent().parent().find('input').val(''); - $(this).parent().parent().find('.cw-image-upload').css('background-image', 'url(' + pluginUrl + '/images/no_image.jpg)'); - }); - - // CATEGORIES - if ($('#cat-type').val() == 'categories') { - $('.cat-display').show(); - $('.data_id').css('color', 'gray'); - } - else { - $('.category_id').css('color', 'gray'); - } - $('#cat-type').change(function(){ - if ($(this).val() == 'months') { - $('.cat-display').hide(); - $('.category_id').css('color', 'gray'); - $('.data_id').css('color', ''); - alert('Check the Date field of your items before you save!'); - } - else { - $('.cat-display').show(); - $('.data_id').css('color', 'gray'); - $('.category_id').css('color', ''); - alert('Check the Category field of your items, and pick categoryes you want to show before you save!'); - } - }); - - $('#cat-check-all').click(function(){ - $('.cat-name').attr('checked', true); - }); - - $('#cat-uncheck-all').click(function(){ - $('.cat-name').attr('checked', false); - }); - - - // SORTABLE - - $('#timeline-sortable').sortable({ - placeholder: "tsort-placeholder" - }); - - //--------------------------------------------- - // Ctimeline Sortable Actions - //--------------------------------------------- - - // add - $('#tsort-add-new').click(function(e){ - e.preventDefault(); - ctimelineAddNew(pluginUrl); - }); - - // open item - $('.tsort-plus').live('click', function(){ - if (!$(this).hasClass('open')) { - $(this).addClass('open'); - $(this).html('-').css('padding', '5px 8px'); - $(this).next().next('.tsort-content').show(); - } - else { - $(this).removeClass('open'); - $(this).html('+').css('padding', '7px 5px'); - $(this).next().next('.tsort-content').hide(); - } - }); - // delete - $('.tsort-delete').live('click', function(e){ - e.preventDefault(); - $(this).parent().parent().remove(); - }); - - $('.tsort-remove').live('click', function(e){ - e.preventDefault(); - $(this).parent().find('input').val(''); - $(this).parent().find('img').attr('src', pluginUrl + '/images/no_image.jpg'); - }); - - - // item images - $('.tsort-change').live('click', function(e) { - e.preventDefault(); - thickItem = true; - thickboxId = '#' + $(this).parent().find('img').attr('id'); - formfield = $(thickboxId + '-input').attr('name'); - tb_show('', 'media-upload.php?type=image&TB_iframe=true'); - return false; - }); - - // item images - $('.tsort-start-item').live('click', function(e) { - $('.tsort-start-item').attr('checked', false); - $(this).attr('checked', 'checked'); - }); - - // ---------------------------------------- - - // AJAX subbmit - $('#save-timeline').click(function(e){ - e.preventDefault(); - $('#save-loader').show(); - $.ajax({ - type:'POST', - url: 'admin-ajax.php', - data:'action=ctimeline_save&' + $('#post_form').serialize(), - success: function(response) { - $('#timeline_id').val(response); - $('#save-loader').hide(); - } - }); - }); - - $('#preview-timeline').click(function(e){ - e.preventDefault(); - var html = '
    '; - html += '
    '; - html += '
    Preview
    '; - html += '
    Close
    '; - html += '
    '; - html += '
    '; - html += ''; - html += '
    '; - html += '
    '; - html += '
    '; - $('body').append(html); - var postForm = $('#post_form').serialize(); - $.ajax({ - type:'POST', - url: 'admin-ajax.php', - data:'action=ctimeline_preview&' + postForm, - success: function(response) { - $('#TBct_loader').hide(); - $('#TBct_window').animate({width: '100%', marginLeft:'-50%', marginTop: '-250px', height: '500px'}, 500, function(){ - $('#timelineHolder').html(response); - $('#timelineHolder').css({'overflow-y':'scroll', 'position': 'relative', 'width':'100%', 'height':'470px'}); - - if($('#read-more').val() == 'whole-item') { - var $read_more = '.item'; - var $swipeOn = false; - } - else if ($('#read-more').val() == 'button') { - var $read_more = '.read_more'; - var $swipeOn = true; - } - else { - var $read_more = '.none'; - var $swipeOn = true; - } - - var startItem = $('#ctimeline-preview-start-item').val(); - - - var $cats = []; - var $numOfItems = []; - var numGet = parseInt($('#number-of-posts').val()); - $('input[name|="cat-name"]:checked').each(function(){ - $cats.push($(this).val()); - $numOfItems.push(numGet); - - }); - - - - - var jsonOptions = { - itemMargin : parseInt($('#item-margin').val()), - swipeOn : $swipeOn, - scrollSpeed : parseInt($('#scroll-speed').val()), - easing : $('#easing').val(), - openTriggerClass : $read_more, - startItem : startItem, - yearsOn : ($('#years-on:checked').length > 0 ), - hideTimeline : ($('#hide-line:checked').length > 0 ), - hideControles : ($('#hide-nav:checked').length > 0 ) - } - - if (typeof $cats[0] != 'undefined' && $('#cat-type').val() == 'categories') { - jsonOptions.yearsOn = false; - jsonOptions.categories = $cats; - jsonOptions.numberOfSegments = $numOfItems; - } - $(".scrollable-content").mCustomScrollbar(); - $('.timeline').timeline(jsonOptions); - $('#preview-loader').hide(); - - $('#TBct_closeWindowButton').click(function(ev){ - ev.preventDefault(); - $('.timeline').timeline('destroy'); - $('#TBct_overlay').remove(); - $('#TBct_window').remove(); - }); - }); - - } - }); - }); - - -}); - - -function ctimelineSortableActions(pluginUrl) { - - - - -} - -function ctimelineAddNew(pluginUrl) { - var searches = new Array(); - searches[''] = ''; - var html = '
    '; - html += '
    '; - html += '
    Add new timeline item
    ' - html += '
    Close
    '; - html += '
    '; - html += 'Add'; - html += ''; - html += ''; - html += '
    '; - $('body').prepend(html); - - - $('#TBct_closeWindowButton').click(function(e){ - e.preventDefault(); - $('#TBct_overlay').remove(); - $('#TBct_window').remove(); - }); - - $('#TBct_timelineSelect').change(function(){ - if ($(this).val() == 'new') { - $('#TBct_window').css({marginTop:'-35px', height:'70px'}); - $('#TBct_timelineFromPost').hide(); - $('#TBct_timelineWholeCategory').hide(); - } - if ($(this).val() == 'category') { - $('#TBct_window').css({marginTop:'-60px', height:'120px'}); - $('#TBct_timelineWholeCategory').show(); - $('#TBct_timelineFromPost').hide(); - } - else { - $('#TBct_window').css({marginTop:'-150px', height:'300px'}); - $('#TBct_timelineFromPost').show(); - $('#TBct_timelineWholeCategory').hide(); - } - }); - - $('#TBct_timelineSubmit').click(function(e){ - e.preventDefault(); - var timelineItem = ''; - if ($('#TBct_timelineSelect').val() == 'new') { - timelineItem = timelineGenerateItem(); - $('#timeline-sortable').append(timelineItem); - $('.tsort-start-item').eq($('.tsort-start-item').length-1).trigger('click').attr('checked', 'checked'); - $('#TBct_overlay').remove(); - $('#TBct_window').remove(); - } - else if ($('#TBct_timelineSelect').val() == 'category') { - $('#TBct_timelineSubmitLoader').show(); - $.ajax({ - url:"admin-ajax.php", - type:"POST", - data:'action=ctimeline_post_category_get&cat_name='+$('TBct_timelineCategorySelect').val(), - - success:function(results){ - var resultsArray = results.split('||'); - var ii = 0; - while (typeof resultsArray[0+ii] != 'undefined') { - - var properties = { - 'title' : resultsArray[0+ii], - 'dataId' : resultsArray[1+ii], - 'categoryId' : resultsArray[2+ii], - 'itemContent' : resultsArray[3+ii], - 'itemImage' : resultsArray[4+ii], - 'itemOpenContent' : resultsArray[5+ii] - } - timelineItem = timelineGenerateItem(properties); - $('#timeline-sortable').append(timelineItem); - ii +=6; - } - $('.tsort-start-item').eq($('.tsort-start-item').length-1).trigger('click').attr('checked', 'checked'); - $('#TBct_overlay').remove(); - $('#TBct_window').remove(); - } - }); - } - - else if($('#timelineFromPostComplete li a.active').length < 1) { - alert('You have to select post you want to add, or choose add new!'); - } - else { - var postId = $('#timelineFromPostComplete li a.active').attr('href'); - $('#TBct_timelineSubmitLoader').show(); - $.ajax({ - url:"admin-ajax.php", - type:"POST", - data:'action=ctimeline_post_get&post_id='+postId, - - success:function(results){ - var resultsArray = results.split('||'); - var properties = { - 'title' : resultsArray[0], - 'dataId' : resultsArray[1], - 'categoryId' : resultsArray[2], - 'itemContent' : resultsArray[3], - 'itemImage' : resultsArray[4], - 'itemOpenContent' : resultsArray[5] - } - timelineItem = timelineGenerateItem(properties); - $('#timeline-sortable').append(timelineItem); - $('.tsort-start-item').eq($('.tsort-start-item').length-1).trigger('click').attr('checked', 'checked'); - $('#TBct_overlay').remove(); - $('#TBct_window').remove(); - } - }); - } - - }) - - $('#timelineFromPost').keyup(function(e){ - var icall = null, - qinput = $('#timelineFromPost').val(); - - if(qinput in searches) { - if(icall != null) icall.abort(); - $('#timelineFromPostComplete').html(searches[qinput]).show(); - $('#timelineFromPostComplete li a').click(function(e){ - e.preventDefault(); - $('#timelineFromPostComplete li a.active').removeClass('active'); - $(this).addClass('active'); - }); - $('#timelineFromPostLoader').hide(); - } - else { - $('#timelineFromPostLoader').show(); - if(icall != null) icall.abort(); - icall = $.ajax({ - url:"admin-ajax.php", - type:"POST", - data:'action=ctimeline_post_search&query='+qinput, - - success:function(results){ - $('#timelineFromPostComplete').html(results).show(); - searches[qinput] = results; - $('#timelineFromPostComplete li a').click(function(e){ - e.preventDefault(); - $('#timelineFromPostComplete li a.active').removeClass('active'); - $(this).addClass('active'); - }); - $('#timelineFromPostLoader').hide(); - } - }); - } - }); -} - -function timelineGenerateItem(properties) { - // set globals - var pluginUrl = $('#plugin-url').val(), - timthumb = pluginUrl + '/timthumb/timthumb.php'; - - // calculate item number - var itemNumber = 1; - while($('#sort'+itemNumber).length > 0) { - itemNumber++; - } - - // get current date - var today = new Date(); - var dd = today.getDate(); - var mm = today.getMonth()+1; - var yyyy = today.getFullYear(); - if(dd<10){dd='0'+dd} - if(mm<10){mm='0'+mm} - today = dd+'/'+mm+'/'+yyyy; - - // get input properties - var pr = $.extend({ - 'title' : 'Title', - 'dataId' : today, - 'categoryId' : '', - 'itemContent' : 'Content', - 'itemImage' : '', - 'itemOpenContent' : 'Content' - }, properties); - - // bring all the pieces together - var itemHtml = '\n'+ -'
  • \n'+ -'
    +
    \n'+ -'
    Item '+itemNumber+' - '+pr.title+'  delete
    \n'+ -'
    \n'+ -'
    \n'+ -' '+ -' ? Argument by which are elements organised (date - dd/mm/yyyy, Category - full category name) Different field is used for different categorizing type.'+ -' '+ -' '+ -' '+ -' '+ -'
    \n'+ -'
    \n'+ -'

    ? Base item content (image, title and content).Item Options

    \n'+ -'
    Change\n' + -' \n'+ -' Remove\n'+ -'
    \n'+ -' \n'+ -'
    \n'+ -' \n'+ -'
    \n'+ -'
    \n'+ -'

    ? Opened item content (image, title and content).Item Open Options

    \n'+ -'
    Change'+ -' \n'+ -' Remove\n'+ -'
    \n'+ -' \n'+ -'
    \n'+ -' \n'+ -'
    \n'+ -'
    \n'+ -'
  • \n'; - return itemHtml; -} - - -})(jQuery) - diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/js/frontend/jquery-1.7.2.min.js --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/js/frontend/jquery-1.7.2.min.js Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4 +0,0 @@ -/*! jQuery v1.7.2 jquery.com | jquery.org/license */ -(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
    a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
    "+""+"
    ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
    t
    ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
    ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( -a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

    ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
    ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
    ","
    "],thead:[1,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],col:[2,"","
    "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
    ","
    "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f -.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
    ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/js/frontend/jquery.easing.1.3.js --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/js/frontend/jquery.easing.1.3.js Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,205 +0,0 @@ -/* - * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ - * - * Uses the built in easing capabilities added In jQuery 1.1 - * to offer multiple easing options - * - * TERMS OF USE - jQuery Easing - * - * Open source under the BSD License. - * - * Copyright © 2008 George McGinley Smith - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this list of - * conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright notice, this list - * of conditions and the following disclaimer in the documentation and/or other materials - * provided with the distribution. - * - * Neither the name of the author nor the names of contributors may be used to endorse - * or promote products derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED - * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED - * OF THE POSSIBILITY OF SUCH DAMAGE. - * -*/ - -// t: current time, b: begInnIng value, c: change In value, d: duration -jQuery.easing['jswing'] = jQuery.easing['swing']; - -jQuery.extend( jQuery.easing, -{ - def: 'easeOutQuad', - swing: function (x, t, b, c, d) { - //alert(jQuery.easing.default); - return jQuery.easing[jQuery.easing.def](x, t, b, c, d); - }, - easeInQuad: function (x, t, b, c, d) { - return c*(t/=d)*t + b; - }, - easeOutQuad: function (x, t, b, c, d) { - return -c *(t/=d)*(t-2) + b; - }, - easeInOutQuad: function (x, t, b, c, d) { - if ((t/=d/2) < 1) return c/2*t*t + b; - return -c/2 * ((--t)*(t-2) - 1) + b; - }, - easeInCubic: function (x, t, b, c, d) { - return c*(t/=d)*t*t + b; - }, - easeOutCubic: function (x, t, b, c, d) { - return c*((t=t/d-1)*t*t + 1) + b; - }, - easeInOutCubic: function (x, t, b, c, d) { - if ((t/=d/2) < 1) return c/2*t*t*t + b; - return c/2*((t-=2)*t*t + 2) + b; - }, - easeInQuart: function (x, t, b, c, d) { - return c*(t/=d)*t*t*t + b; - }, - easeOutQuart: function (x, t, b, c, d) { - return -c * ((t=t/d-1)*t*t*t - 1) + b; - }, - easeInOutQuart: function (x, t, b, c, d) { - if ((t/=d/2) < 1) return c/2*t*t*t*t + b; - return -c/2 * ((t-=2)*t*t*t - 2) + b; - }, - easeInQuint: function (x, t, b, c, d) { - return c*(t/=d)*t*t*t*t + b; - }, - easeOutQuint: function (x, t, b, c, d) { - return c*((t=t/d-1)*t*t*t*t + 1) + b; - }, - easeInOutQuint: function (x, t, b, c, d) { - if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; - return c/2*((t-=2)*t*t*t*t + 2) + b; - }, - easeInSine: function (x, t, b, c, d) { - return -c * Math.cos(t/d * (Math.PI/2)) + c + b; - }, - easeOutSine: function (x, t, b, c, d) { - return c * Math.sin(t/d * (Math.PI/2)) + b; - }, - easeInOutSine: function (x, t, b, c, d) { - return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; - }, - easeInExpo: function (x, t, b, c, d) { - return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; - }, - easeOutExpo: function (x, t, b, c, d) { - return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; - }, - easeInOutExpo: function (x, t, b, c, d) { - if (t==0) return b; - if (t==d) return b+c; - if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; - return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; - }, - easeInCirc: function (x, t, b, c, d) { - return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; - }, - easeOutCirc: function (x, t, b, c, d) { - return c * Math.sqrt(1 - (t=t/d-1)*t) + b; - }, - easeInOutCirc: function (x, t, b, c, d) { - if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; - return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; - }, - easeInElastic: function (x, t, b, c, d) { - var s=1.70158;var p=0;var a=c; - if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; - if (a < Math.abs(c)) { a=c; var s=p/4; } - else var s = p/(2*Math.PI) * Math.asin (c/a); - return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; - }, - easeOutElastic: function (x, t, b, c, d) { - var s=1.70158;var p=0;var a=c; - if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; - if (a < Math.abs(c)) { a=c; var s=p/4; } - else var s = p/(2*Math.PI) * Math.asin (c/a); - return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; - }, - easeInOutElastic: function (x, t, b, c, d) { - var s=1.70158;var p=0;var a=c; - if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); - if (a < Math.abs(c)) { a=c; var s=p/4; } - else var s = p/(2*Math.PI) * Math.asin (c/a); - if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; - return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; - }, - easeInBack: function (x, t, b, c, d, s) { - if (s == undefined) s = 1.70158; - return c*(t/=d)*t*((s+1)*t - s) + b; - }, - easeOutBack: function (x, t, b, c, d, s) { - if (s == undefined) s = 1.70158; - return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; - }, - easeInOutBack: function (x, t, b, c, d, s) { - if (s == undefined) s = 1.70158; - if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; - return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; - }, - easeInBounce: function (x, t, b, c, d) { - return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b; - }, - easeOutBounce: function (x, t, b, c, d) { - if ((t/=d) < (1/2.75)) { - return c*(7.5625*t*t) + b; - } else if (t < (2/2.75)) { - return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; - } else if (t < (2.5/2.75)) { - return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; - } else { - return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; - } - }, - easeInOutBounce: function (x, t, b, c, d) { - if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; - return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; - } -}); - -/* - * - * TERMS OF USE - EASING EQUATIONS - * - * Open source under the BSD License. - * - * Copyright © 2001 Robert Penner - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this list of - * conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright notice, this list - * of conditions and the following disclaimer in the documentation and/or other materials - * provided with the distribution. - * - * Neither the name of the author nor the names of contributors may be used to endorse - * or promote products derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED - * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED - * OF THE POSSIBILITY OF SUCH DAMAGE. - * - */ \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/js/frontend/jquery.mCustomScrollbar.min.js --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/js/frontend/jquery.mCustomScrollbar.min.js Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -(function(b){var a={init:function(c){var e={set_width:false,set_height:false,horizontalScroll:false,scrollInertia:550,scrollEasing:"easeOutCirc",mouseWheel:"auto",autoDraggerLength:true,scrollButtons:{enable:false,scrollType:"continuous",scrollSpeed:20,scrollAmount:40},advanced:{updateOnBrowserResize:true,updateOnContentResize:false,autoExpandHorizontalScroll:false},callbacks:{onScroll:function(){},onTotalScroll:function(){},onTotalScrollOffset:0}},c=b.extend(true,e,c);b(document).data("mCS-is-touch-device",false);if(d()){b(document).data("mCS-is-touch-device",true)}function d(){return !!("ontouchstart" in window)?1:0}return this.each(function(){var m=b(this);if(c.set_width){m.css("width",c.set_width)}if(c.set_height){m.css("height",c.set_height)}if(!b(document).data("mCustomScrollbar-index")){b(document).data("mCustomScrollbar-index","1")}else{var s=parseInt(b(document).data("mCustomScrollbar-index"));b(document).data("mCustomScrollbar-index",s+1)}m.wrapInner("
    ").addClass("mCustomScrollbar _mCS_"+b(document).data("mCustomScrollbar-index"));var g=m.children(".mCustomScrollBox");if(c.horizontalScroll){g.addClass("mCSB_horizontal").wrapInner("
    ");var k=g.children(".mCSB_h_wrapper");k.wrapInner("
    ").children(".mCSB_container").css({width:k.children().outerWidth(),position:"relative"}).unwrap()}else{g.wrapInner("
    ")}var o=g.children(".mCSB_container");if(!b(document).data("mCS-is-touch-device")){o.after("
    ");var l=g.children(".mCSB_scrollTools"),h=l.children(".mCSB_draggerContainer"),q=h.children(".mCSB_dragger");if(c.horizontalScroll){q.data("minDraggerWidth",q.width())}else{q.data("minDraggerHeight",q.height())}if(c.scrollButtons.enable){if(c.horizontalScroll){l.prepend("").append("")}else{l.prepend("").append("")}}g.bind("scroll",function(){g.scrollTop(0).scrollLeft(0)});m.data({horizontalScroll:c.horizontalScroll,scrollInertia:c.scrollInertia,scrollEasing:c.scrollEasing,mouseWheel:c.mouseWheel,autoDraggerLength:c.autoDraggerLength,"scrollButtons-enable":c.scrollButtons.enable,"scrollButtons-scrollType":c.scrollButtons.scrollType,"scrollButtons-scrollSpeed":c.scrollButtons.scrollSpeed,"scrollButtons-scrollAmount":c.scrollButtons.scrollAmount,autoExpandHorizontalScroll:c.advanced.autoExpandHorizontalScroll,"onScroll-Callback":c.callbacks.onScroll,"onTotalScroll-Callback":c.callbacks.onTotalScroll,"onTotalScroll-Offset":c.callbacks.onTotalScrollOffset}).mCustomScrollbar("update");if(c.advanced.updateOnBrowserResize){var i;b(window).resize(function(){if(i){clearTimeout(i)}i=setTimeout(function(){m.mCustomScrollbar("update")},150)})}}else{var f=navigator.userAgent;if(f.indexOf("Android")!=-1){var r=parseFloat(f.slice(f.indexOf("Android")+8));if(r<3){j("mCSB_"+b(document).data("mCustomScrollbar-index"))}else{g.css({overflow:"auto","-webkit-overflow-scrolling":"touch"})}}else{g.css({overflow:"auto","-webkit-overflow-scrolling":"touch"})}o.addClass("mCS_no_scrollbar mCS_touch");m.data({horizontalScroll:c.horizontalScroll,scrollInertia:c.scrollInertia,scrollEasing:c.scrollEasing,autoExpandHorizontalScroll:c.advanced.autoExpandHorizontalScroll,"onScroll-Callback":c.callbacks.onScroll,"onTotalScroll-Callback":c.callbacks.onTotalScroll,"onTotalScroll-Offset":c.callbacks.onTotalScrollOffset});g.scroll(function(){m.mCustomScrollbar("callbacks",g,o)});function j(w){var t=document.getElementById(w),u=0,v=0;document.getElementById(w).addEventListener("touchstart",function(x){u=this.scrollTop+x.touches[0].pageY;v=this.scrollLeft+x.touches[0].pageX},false);document.getElementById(w).addEventListener("touchmove",function(x){if((this.scrollTopu+5)){x.preventDefault()}if((this.scrollLeftv+5)){x.preventDefault()}this.scrollTop=u-x.touches[0].pageY;this.scrollLeft=v-x.touches[0].pageX},false)}}if(c.advanced.updateOnContentResize){var p;if(c.horizontalScroll){var n=o.outerWidth();if(d()){g.css({"-webkit-overflow-scrolling":"auto"})}}else{var n=o.outerHeight()}p=setInterval(function(){if(c.horizontalScroll){if(c.advanced.autoExpandHorizontalScroll){o.css({position:"absolute",width:"auto"}).wrap("
    ").css({width:o.outerWidth(),position:"relative"}).unwrap()}var t=o.outerWidth()}else{var t=o.outerHeight()}if(t!=n){m.mCustomScrollbar("update");n=t}},300)}})},update:function(){var l=b(this),i=l.children(".mCustomScrollBox"),o=i.children(".mCSB_container");if(!b(document).data("mCS-is-touch-device")){o.removeClass("mCS_no_scrollbar")}var w=i.children(".mCSB_scrollTools"),m=w.children(".mCSB_draggerContainer"),k=m.children(".mCSB_dragger");if(l.data("horizontalScroll")){var y=w.children(".mCSB_buttonLeft"),r=w.children(".mCSB_buttonRight"),d=i.width();if(l.data("autoExpandHorizontalScroll")){o.css({position:"absolute",width:"auto"}).wrap("
    ").css({width:o.outerWidth(),position:"relative"}).unwrap()}var x=o.outerWidth()}else{var u=w.children(".mCSB_buttonUp"),e=w.children(".mCSB_buttonDown"),p=i.height(),g=o.outerHeight()}if(g>p&&!l.data("horizontalScroll")&&!b(document).data("mCS-is-touch-device")){w.css("display","block");var q=m.height();if(l.data("autoDraggerLength")){var s=Math.round(p/g*q),j=k.data("minDraggerHeight");if(s<=j){k.css({height:j})}else{if(s>=q-10){var n=q-10;k.css({height:n})}else{k.css({height:s})}}k.children(".mCSB_dragger_bar").css({"line-height":k.height()+"px"})}var z=k.height(),v=(g-p)/(q-z);l.data("scrollAmount",v);l.mCustomScrollbar("scrolling",i,o,m,k,u,e,y,r);var B=Math.abs(Math.round(o.position().top));l.mCustomScrollbar("scrollTo",B,{callback:false})}else{if(x>d&&l.data("horizontalScroll")&&!b(document).data("mCS-is-touch-device")){w.css("display","block");var f=m.width();if(l.data("autoDraggerLength")){var h=Math.round(d/x*f),A=k.data("minDraggerWidth");if(h<=A){k.css({width:A})}else{if(h>=f-10){var c=f-10;k.css({width:c})}else{k.css({width:h})}}}var t=k.width(),v=(x-d)/(f-t);l.data("scrollAmount",v);l.mCustomScrollbar("scrolling",i,o,m,k,u,e,y,r);var B=Math.abs(Math.round(o.position().left));l.mCustomScrollbar("scrollTo",B,{callback:false})}else{i.unbind("mousewheel");i.unbind("focusin");if(l.data("horizontalScroll")){k.add(o).css("left",0)}else{k.add(o).css("top",0)}w.css("display","none");o.addClass("mCS_no_scrollbar")}}},scrolling:function(h,p,m,j,v,c,y,s){var l=b(this);if(!j.hasClass("ui-draggable")){if(l.data("horizontalScroll")){var i="x"}else{var i="y"}j.draggable({axis:i,containment:"parent",drag:function(B,C){l.mCustomScrollbar("scroll");j.addClass("mCSB_dragger_onDrag")},stop:function(B,C){j.removeClass("mCSB_dragger_onDrag")}})}m.unbind("click").bind("click",function(D){if(l.data("horizontalScroll")){var B=(D.pageX-m.offset().left);if(B(j.position().left+j.width())){var C=B;if(C>=m.width()-j.width()){C=m.width()-j.width()}j.css("left",C);l.mCustomScrollbar("scroll")}}else{var B=(D.pageY-m.offset().top);if(B(j.position().top+j.height())){var C=B;if(C>=m.height()-j.height()){C=m.height()-j.height()}j.css("top",C);l.mCustomScrollbar("scroll")}}});if(l.data("mouseWheel")){var t=l.data("mouseWheel");if(l.data("mouseWheel")==="auto"){t=8;var n=navigator.userAgent;if(n.indexOf("Mac")!=-1&&n.indexOf("Safari")!=-1&&n.indexOf("AppleWebKit")!=-1&&n.indexOf("Chrome")==-1){t=1}}h.unbind("mousewheel").bind("mousewheel",function(E,J){E.preventDefault();var I=Math.abs(J*t);if(l.data("horizontalScroll")){var D=j.position().left-(J*I);j.css("left",D);if(j.position().left<0){j.css("left",0)}var H=m.width(),G=j.width();if(j.position().left>H-G){j.css("left",H-G)}}else{var B=j.position().top-(J*I);j.css("top",B);if(j.position().top<0){j.css("top",0)}var F=m.height(),C=j.height();if(j.position().top>F-C){j.css("top",F-C)}}l.mCustomScrollbar("scroll")})}if(l.data("scrollButtons-enable")){if(l.data("scrollButtons-scrollType")==="pixels"){var A;if(b.browser.msie&&parseInt(b.browser.version)<9){l.data("scrollInertia",0)}if(l.data("horizontalScroll")){s.add(y).unbind("click mousedown mouseup mouseout",k,g);s.bind("click",function(B){B.preventDefault();if(!p.is(":animated")){A=Math.abs(p.position().left)+l.data("scrollButtons-scrollAmount");l.mCustomScrollbar("scrollTo",A)}});y.bind("click",function(B){B.preventDefault();if(!p.is(":animated")){A=Math.abs(p.position().left)-l.data("scrollButtons-scrollAmount");if(p.position().left>=-l.data("scrollButtons-scrollAmount")){A="left"}l.mCustomScrollbar("scrollTo",A)}})}else{c.add(v).unbind("click mousedown mouseup mouseout",r,f);c.bind("click",function(B){B.preventDefault();if(!p.is(":animated")){A=Math.abs(p.position().top)+l.data("scrollButtons-scrollAmount");l.mCustomScrollbar("scrollTo",A)}});v.bind("click",function(B){B.preventDefault();if(!p.is(":animated")){A=Math.abs(p.position().top)-l.data("scrollButtons-scrollAmount");if(p.position().top>=-l.data("scrollButtons-scrollAmount")){A="top"}l.mCustomScrollbar("scrollTo",A)}})}}else{if(l.data("horizontalScroll")){s.add(y).unbind("click mousedown mouseup mouseout",k,g);var x,e=m.width(),u=j.width();s.bind("mousedown",function(C){C.preventDefault();var B=e-u;x=setInterval(function(){var D=Math.abs(j.position().left-B)*(100/l.data("scrollButtons-scrollSpeed"));j.stop().animate({left:B},D,"linear");l.mCustomScrollbar("scroll")},20)});var k=function(B){B.preventDefault();clearInterval(x);j.stop()};s.bind("mouseup mouseout",k);var d;y.bind("mousedown",function(C){C.preventDefault();var B=0;d=setInterval(function(){var D=Math.abs(j.position().left-B)*(100/l.data("scrollButtons-scrollSpeed"));j.stop().animate({left:B},D,"linear");l.mCustomScrollbar("scroll")},20)});var g=function(B){B.preventDefault();clearInterval(d);j.stop()};y.bind("mouseup mouseout",g)}else{c.add(v).unbind("click mousedown mouseup mouseout",r,f);var o,q=m.height(),z=j.height();c.bind("mousedown",function(C){C.preventDefault();var B=q-z;o=setInterval(function(){var D=Math.abs(j.position().top-B)*(100/l.data("scrollButtons-scrollSpeed"));j.stop().animate({top:B},D,"linear");l.mCustomScrollbar("scroll")},20)});var r=function(B){B.preventDefault();clearInterval(o);j.stop()};c.bind("mouseup mouseout",r);var w;v.bind("mousedown",function(C){C.preventDefault();var B=0;w=setInterval(function(){var D=Math.abs(j.position().top-B)*(100/l.data("scrollButtons-scrollSpeed"));j.stop().animate({top:B},D,"linear");l.mCustomScrollbar("scroll")},20)});var f=function(B){B.preventDefault();clearInterval(w);j.stop()};v.bind("mouseup mouseout",f)}}}h.unbind("focusin").bind("focusin",function(){h.scrollTop(0).scrollLeft(0);var C=b(document.activeElement);if(C.is("input,textarea,select,button,a[tabindex],area,object")){if(l.data("horizontalScroll")){var J=p.position().left,G=C.position().left,E=h.width(),H=C.outerWidth();if(J+G>=0&&J+G<=E-H){}else{var K=G/l.data("scrollAmount");if(K>=m.width()-j.width()){K=m.width()-j.width()}j.css("left",K);l.mCustomScrollbar("scroll")}}else{var I=p.position().top,F=C.position().top,B=h.height(),D=C.outerHeight();if(I+F>=0&&I+F<=B-D){}else{var K=F/l.data("scrollAmount");if(K>=m.height()-j.height()){K=m.height()-j.height()}j.css("top",K);l.mCustomScrollbar("scroll")}}}})},scroll:function(h){var k=b(this),p=k.find(".mCSB_dragger"),n=k.find(".mCSB_container"),e=k.find(".mCustomScrollBox");if(k.data("horizontalScroll")){var g=p.position().left,m=-g*k.data("scrollAmount"),o=n.position().left,d=Math.round(o-m)}else{var f=p.position().top,j=-f*k.data("scrollAmount"),l=n.position().top,c=Math.round(l-j)}if(b.browser.webkit){var q=(window.outerWidth-8)/window.innerWidth,i=(q<0.98||q>1.02)}if(k.data("scrollInertia")===0||i){if(k.data("horizontalScroll")){n.css("left",m)}else{n.css("top",j)}if(!h){k.mCustomScrollbar("callbacks",e,n)}}else{if(k.data("horizontalScroll")){n.stop().animate({left:"-="+d},k.data("scrollInertia"),k.data("scrollEasing"),function(){if(!h){k.mCustomScrollbar("callbacks",e,n)}})}else{n.stop().animate({top:"-="+c},k.data("scrollInertia"),k.data("scrollEasing"),function(){if(!h){k.mCustomScrollbar("callbacks",e,n)}})}}},scrollTo:function(g,m){var f={moveDragger:false,callback:true},m=b.extend(f,m),i=b(this),c,d=i.find(".mCustomScrollBox"),j=d.children(".mCSB_container");if(!b(document).data("mCS-is-touch-device")){var e=i.find(".mCSB_draggerContainer"),k=e.children(".mCSB_dragger")}var l;if(g){if(typeof(g)==="number"){if(m.moveDragger){c=g}else{l=g;c=Math.round(l/i.data("scrollAmount"))}}else{if(typeof(g)==="string"){var h;if(g==="top"){h=0}else{if(g==="bottom"&&!i.data("horizontalScroll")){h=j.outerHeight()-d.height()}else{if(g==="left"){h=0}else{if(g==="right"&&i.data("horizontalScroll")){h=j.outerWidth()-d.width()}else{if(g==="first"){h=i.find(".mCSB_container").find(":first")}else{if(g==="last"){h=i.find(".mCSB_container").find(":last")}else{h=i.find(g)}}}}}}if(h.length===1){if(i.data("horizontalScroll")){l=h.position().left}else{l=h.position().top}if(b(document).data("mCS-is-touch-device")){c=l}else{c=Math.ceil(l/i.data("scrollAmount"))}}else{c=h}}}if(b(document).data("mCS-is-touch-device")){if(i.data("horizontalScroll")){d.stop().animate({scrollLeft:c},i.data("scrollInertia"),i.data("scrollEasing"),function(){if(m.callback){i.mCustomScrollbar("callbacks",d,j)}})}else{d.stop().animate({scrollTop:c},i.data("scrollInertia"),i.data("scrollEasing"),function(){if(m.callback){i.mCustomScrollbar("callbacks",d,j)}})}}else{if(i.data("horizontalScroll")){if(c>=e.width()-k.width()){c=e.width()-k.width()}k.css("left",c)}else{if(c>=e.height()-k.height()){c=e.height()-k.height()}k.css("top",c)}if(m.callback){i.mCustomScrollbar("scroll")}else{i.mCustomScrollbar("scroll",true)}}}},callbacks:function(e,h){var i=b(this);if(!b(document).data("mCS-is-touch-device")){if(i.data("horizontalScroll")){var g=Math.round(h.position().left);if(g<0&&g<=e.width()-h.outerWidth()+i.data("onTotalScroll-Offset")){i.data("onTotalScroll-Callback").call()}else{i.data("onScroll-Callback").call()}}else{var f=Math.round(h.position().top);if(f<0&&f<=e.height()-h.outerHeight()+i.data("onTotalScroll-Offset")){i.data("onTotalScroll-Callback").call()}else{i.data("onScroll-Callback").call()}}}else{if(i.data("horizontalScroll")){var d=Math.round(e.scrollLeft());if(d>0&&d>=h.outerWidth()-i.width()-i.data("onTotalScroll-Offset")){i.data("onTotalScroll-Callback").call()}else{i.data("onScroll-Callback").call()}}else{var c=Math.round(e.scrollTop());if(c>0&&c>=h.outerHeight()-i.height()-i.data("onTotalScroll-Offset")){i.data("onTotalScroll-Callback").call()}else{i.data("onScroll-Callback").call()}}}}};b.fn.mCustomScrollbar=function(c){if(a[c]){return a[c].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof c==="object"||!c){return a.init.apply(this,arguments)}else{b.error("Method "+c+" does not exist")}}}})(jQuery); \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/js/frontend/jquery.mousewheel.min.js --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/js/frontend/jquery.mousewheel.min.js Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net) - * Licensed under the MIT License (LICENSE.txt). - * - * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. - * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix. - * Thanks to: Seamus Leahy for adding deltaX and deltaY - * - * Version: 3.0.6 - * - * Requires: 1.2.2+ - */ -(function(a){function d(b){var c=b||window.event,d=[].slice.call(arguments,1),e=0,f=!0,g=0,h=0;return b=a.event.fix(c),b.type="mousewheel",c.wheelDelta&&(e=c.wheelDelta/120),c.detail&&(e=-c.detail/3),h=e,c.axis!==undefined&&c.axis===c.HORIZONTAL_AXIS&&(h=0,g=-1*e),c.wheelDeltaY!==undefined&&(h=c.wheelDeltaY/120),c.wheelDeltaX!==undefined&&(g=-1*c.wheelDeltaX/120),d.unshift(b,e,g,h),(a.event.dispatch||a.event.handle).apply(this,d)}var b=["DOMMouseScroll","mousewheel"];if(a.event.fixHooks)for(var c=b.length;c;)a.event.fixHooks[b[--c]]=a.event.mouseHooks;a.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=b.length;a;)this.addEventListener(b[--a],d,!1);else this.onmousewheel=d},teardown:function(){if(this.removeEventListener)for(var a=b.length;a;)this.removeEventListener(b[--a],d,!1);else this.onmousewheel=null}},a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery) diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/js/frontend/jquery.prettyPhoto.js --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/js/frontend/jquery.prettyPhoto.js Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,83 +0,0 @@ -/* ------------------------------------------------------------------------ - Class: prettyPhoto - Use: Lightbox clone for jQuery - Author: Stephane Caron (http://www.no-margin-for-errors.com) - Version: 3.1.4 -------------------------------------------------------------------------- */ - -(function($){$.prettyPhoto={version:'3.1.4'};$.fn.prettyPhoto=function(pp_settings){pp_settings=jQuery.extend({hook:'rel',animation_speed:'fast',ajaxcallback:function(){},slideshow:5000,autoplay_slideshow:false,opacity:0.80,show_title:true,allow_resize:true,allow_expand:true,default_width:500,default_height:344,counter_separator_label:'/',theme:'pp_default',horizontal_padding:20,hideflash:false,wmode:'opaque',autoplay:true,modal:false,deeplinking:true,overlay_gallery:true,overlay_gallery_max:30,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},ie6_fallback:true,markup:'
    \ -
     
    \ -
    \ -
    \ -
    \ -
    \ -
    \ -
    \ -
    \ -
    \ -
    \ -
    \ -
    \ - Expand \ -
    \ - next \ - previous \ -
    \ -
    \ -
    \ -
    \ - Previous \ -

    0/0

    \ - Next \ -
    \ -

    \ -
    {pp_social}
    \ - Close \ -
    \ -
    \ -
    \ -
    \ -
    \ -
    \ -
    \ -
    \ -
    \ -
    \ -
    \ -
    \ -
    ',gallery_markup:'',image_markup:'',flash_markup:'',quicktime_markup:'',iframe_markup:'',inline_markup:'
    {content}
    ',custom_markup:'',social_tools:''},pp_settings);var matchedObjects=this,percentBased=false,pp_dimensions,pp_open,pp_contentHeight,pp_contentWidth,pp_containerHeight,pp_containerWidth,windowHeight=$(window).height(),windowWidth=$(window).width(),pp_slideshow;doresize=true,scroll_pos=_get_scroll();$(window).unbind('resize.prettyphoto').bind('resize.prettyphoto',function(){_center_overlay();_resize_overlay();});if(pp_settings.keyboard_shortcuts){$(document).unbind('keydown.prettyphoto').bind('keydown.prettyphoto',function(e){if(typeof $pp_pic_holder!='undefined'){if($pp_pic_holder.is(':visible')){switch(e.keyCode){case 37:$.prettyPhoto.changePage('previous');e.preventDefault();break;case 39:$.prettyPhoto.changePage('next');e.preventDefault();break;case 27:if(!settings.modal) -$.prettyPhoto.close();e.preventDefault();break;};};};});};$.prettyPhoto.initialize=function(){settings=pp_settings;if(settings.theme=='pp_default')settings.horizontal_padding=16;if(settings.ie6_fallback&&$.browser.msie&&parseInt($.browser.version)==6)settings.theme="light_square";theRel=$(this).attr(settings.hook);galleryRegExp=/\[(?:.*)\]/;isSet=(galleryRegExp.exec(theRel))?true:false;pp_images=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr(settings.hook).indexOf(theRel)!=-1)return $(n).attr('href');}):$.makeArray($(this).attr('href'));pp_titles=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr(settings.hook).indexOf(theRel)!=-1)return($(n).find('img').attr('alt'))?$(n).find('img').attr('alt'):"";}):$.makeArray($(this).find('img').attr('alt'));pp_descriptions=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr(settings.hook).indexOf(theRel)!=-1)return($(n).attr('title'))?$(n).attr('title'):"";}):$.makeArray($(this).attr('title'));if(pp_images.length>settings.overlay_gallery_max)settings.overlay_gallery=false;set_position=jQuery.inArray($(this).attr('href'),pp_images);rel_index=(isSet)?set_position:$("a["+settings.hook+"^='"+theRel+"']").index($(this));_build_overlay(this);if(settings.allow_resize) -$(window).bind('scroll.prettyphoto',function(){_center_overlay();});$.prettyPhoto.open();return false;} -$.prettyPhoto.open=function(event){if(typeof settings=="undefined"){settings=pp_settings;if($.browser.msie&&$.browser.version==6)settings.theme="light_square";pp_images=$.makeArray(arguments[0]);pp_titles=(arguments[1])?$.makeArray(arguments[1]):$.makeArray("");pp_descriptions=(arguments[2])?$.makeArray(arguments[2]):$.makeArray("");isSet=(pp_images.length>1)?true:false;set_position=(arguments[3])?arguments[3]:0;_build_overlay(event.target);} -if($.browser.msie&&$.browser.version==6)$('select').css('visibility','hidden');if(settings.hideflash)$('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','hidden');_checkPosition($(pp_images).size());$('.pp_loaderIcon').show();if(settings.deeplinking) -setHashtag();if(settings.social_tools){facebook_like_link=settings.social_tools.replace('{location_href}',encodeURIComponent(location.href));$pp_pic_holder.find('.pp_social').html(facebook_like_link);} -if($ppt.is(':hidden'))$ppt.css('opacity',0).show();$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity);$pp_pic_holder.find('.currentTextHolder').text((set_position+1)+settings.counter_separator_label+$(pp_images).size());if(typeof pp_descriptions[set_position]!='undefined'&&pp_descriptions[set_position]!=""){$pp_pic_holder.find('.pp_description').show().html(unescape(pp_descriptions[set_position]));}else{$pp_pic_holder.find('.pp_description').hide();} -movie_width=(parseFloat(getParam('width',pp_images[set_position])))?getParam('width',pp_images[set_position]):settings.default_width.toString();movie_height=(parseFloat(getParam('height',pp_images[set_position])))?getParam('height',pp_images[set_position]):settings.default_height.toString();percentBased=false;if(movie_height.indexOf('%')!=-1){movie_height=parseFloat(($(window).height()*parseFloat(movie_height)/100)-150);percentBased=true;} -if(movie_width.indexOf('%')!=-1){movie_width=parseFloat(($(window).width()*parseFloat(movie_width)/100)-150);percentBased=true;} -$pp_pic_holder.fadeIn(function(){(settings.show_title&&pp_titles[set_position]!=""&&typeof pp_titles[set_position]!="undefined")?$ppt.html(unescape(pp_titles[set_position])):$ppt.html(' ');imgPreloader="";skipInjection=false;switch(_getFileType(pp_images[set_position])){case'image':imgPreloader=new Image();nextImage=new Image();if(isSet&&set_position<$(pp_images).size()-1)nextImage.src=pp_images[set_position+1];prevImage=new Image();if(isSet&&pp_images[set_position-1])prevImage.src=pp_images[set_position-1];$pp_pic_holder.find('#pp_full_res')[0].innerHTML=settings.image_markup.replace(/{path}/g,pp_images[set_position]);imgPreloader.onload=function(){pp_dimensions=_fitToViewport(imgPreloader.width,imgPreloader.height);_showContent();};imgPreloader.onerror=function(){alert('Image cannot be loaded. Make sure the path is correct and image exist.');$.prettyPhoto.close();};imgPreloader.src=pp_images[set_position];break;case'youtube':pp_dimensions=_fitToViewport(movie_width,movie_height);movie_id=getParam('v',pp_images[set_position]);if(movie_id==""){movie_id=pp_images[set_position].split('youtu.be/');movie_id=movie_id[1];if(movie_id.indexOf('?')>0) -movie_id=movie_id.substr(0,movie_id.indexOf('?'));if(movie_id.indexOf('&')>0) -movie_id=movie_id.substr(0,movie_id.indexOf('&'));} -movie='http://www.youtube.com/embed/'+movie_id;(getParam('rel',pp_images[set_position]))?movie+="?rel="+getParam('rel',pp_images[set_position]):movie+="?rel=1";if(settings.autoplay)movie+="&autoplay=1";toInject=settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case'vimeo':pp_dimensions=_fitToViewport(movie_width,movie_height);movie_id=pp_images[set_position];var regExp=/http:\/\/(www\.)?vimeo.com\/(\d+)/;var match=movie_id.match(regExp);movie='http://player.vimeo.com/video/'+match[2]+'?title=0&byline=0&portrait=0';if(settings.autoplay)movie+="&autoplay=1;";vimeo_width=pp_dimensions['width']+'/embed/?moog_width='+pp_dimensions['width'];toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,pp_dimensions['height']).replace(/{path}/g,movie);break;case'quicktime':pp_dimensions=_fitToViewport(movie_width,movie_height);pp_dimensions['height']+=15;pp_dimensions['contentHeight']+=15;pp_dimensions['containerHeight']+=15;toInject=settings.quicktime_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case'flash':pp_dimensions=_fitToViewport(movie_width,movie_height);flash_vars=pp_images[set_position];flash_vars=flash_vars.substring(pp_images[set_position].indexOf('flashvars')+10,pp_images[set_position].length);filename=pp_images[set_position];filename=filename.substring(0,filename.indexOf('?'));toInject=settings.flash_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+'?'+flash_vars);break;case'iframe':pp_dimensions=_fitToViewport(movie_width,movie_height);frame_url=pp_images[set_position];frame_url=frame_url.substr(0,frame_url.indexOf('iframe')-1);toInject=settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{path}/g,frame_url);break;case'ajax':doresize=false;pp_dimensions=_fitToViewport(movie_width,movie_height);doresize=true;skipInjection=true;$.get(pp_images[set_position],function(responseHTML){toInject=settings.inline_markup.replace(/{content}/g,responseHTML);$pp_pic_holder.find('#pp_full_res')[0].innerHTML=toInject;_showContent();});break;case'custom':pp_dimensions=_fitToViewport(movie_width,movie_height);toInject=settings.custom_markup;break;case'inline':myClone=$(pp_images[set_position]).clone().append('
    ').css({'width':settings.default_width}).wrapInner('
    ').appendTo($('body')).show();doresize=false;pp_dimensions=_fitToViewport($(myClone).width(),$(myClone).height());doresize=true;$(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,$(pp_images[set_position]).html());break;};if(!imgPreloader&&!skipInjection){$pp_pic_holder.find('#pp_full_res')[0].innerHTML=toInject;_showContent();};});return false;};$.prettyPhoto.changePage=function(direction){currentGalleryPage=0;if(direction=='previous'){set_position--;if(set_position<0)set_position=$(pp_images).size()-1;}else if(direction=='next'){set_position++;if(set_position>$(pp_images).size()-1)set_position=0;}else{set_position=direction;};rel_index=set_position;if(!doresize)doresize=true;if(settings.allow_expand){$('.pp_contract').removeClass('pp_contract').addClass('pp_expand');} -_hideContent(function(){$.prettyPhoto.open();});};$.prettyPhoto.changeGalleryPage=function(direction){if(direction=='next'){currentGalleryPage++;if(currentGalleryPage>totalPage)currentGalleryPage=0;}else if(direction=='previous'){currentGalleryPage--;if(currentGalleryPage<0)currentGalleryPage=totalPage;}else{currentGalleryPage=direction;};slide_speed=(direction=='next'||direction=='previous')?settings.animation_speed:0;slide_to=currentGalleryPage*(itemsPerPage*itemWidth);$pp_gallery.find('ul').animate({left:-slide_to},slide_speed);};$.prettyPhoto.startSlideshow=function(){if(typeof pp_slideshow=='undefined'){$pp_pic_holder.find('.pp_play').unbind('click').removeClass('pp_play').addClass('pp_pause').click(function(){$.prettyPhoto.stopSlideshow();return false;});pp_slideshow=setInterval($.prettyPhoto.startSlideshow,settings.slideshow);}else{$.prettyPhoto.changePage('next');};} -$.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find('.pp_pause').unbind('click').removeClass('pp_pause').addClass('pp_play').click(function(){$.prettyPhoto.startSlideshow();return false;});clearInterval(pp_slideshow);pp_slideshow=undefined;} -$.prettyPhoto.close=function(){if($pp_overlay.is(":animated"))return;$.prettyPhoto.stopSlideshow();$pp_pic_holder.stop().find('object,embed').css('visibility','hidden');$('div.pp_pic_holder,div.ppt,.pp_fade').fadeOut(settings.animation_speed,function(){$(this).remove();});$pp_overlay.fadeOut(settings.animation_speed,function(){if($.browser.msie&&$.browser.version==6)$('select').css('visibility','visible');if(settings.hideflash)$('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','visible');$(this).remove();$(window).unbind('scroll.prettyphoto');clearHashtag();settings.callback();doresize=true;pp_open=false;delete settings;});};function _showContent(){$('.pp_loaderIcon').hide();projectedTop=scroll_pos['scrollTop']+((windowHeight/2)-(pp_dimensions['containerHeight']/2));if(projectedTop<0)projectedTop=0;$ppt.fadeTo(settings.animation_speed,1);$pp_pic_holder.find('.pp_content').animate({height:pp_dimensions['contentHeight'],width:pp_dimensions['contentWidth']},settings.animation_speed);$pp_pic_holder.animate({'top':projectedTop,'left':((windowWidth/2)-(pp_dimensions['containerWidth']/2)<0)?0:(windowWidth/2)-(pp_dimensions['containerWidth']/2),width:pp_dimensions['containerWidth']},settings.animation_speed,function(){$pp_pic_holder.find('.pp_hoverContainer,#fullResImage').height(pp_dimensions['height']).width(pp_dimensions['width']);$pp_pic_holder.find('.pp_fade').fadeIn(settings.animation_speed);if(isSet&&_getFileType(pp_images[set_position])=="image"){$pp_pic_holder.find('.pp_hoverContainer').show();}else{$pp_pic_holder.find('.pp_hoverContainer').hide();} -if(settings.allow_expand){if(pp_dimensions['resized']){$('a.pp_expand,a.pp_contract').show();}else{$('a.pp_expand').hide();}} -if(settings.autoplay_slideshow&&!pp_slideshow&&!pp_open)$.prettyPhoto.startSlideshow();settings.changepicturecallback();pp_open=true;});_insert_gallery();pp_settings.ajaxcallback();};function _hideContent(callback){$pp_pic_holder.find('#pp_full_res object,#pp_full_res embed').css('visibility','hidden');$pp_pic_holder.find('.pp_fade').fadeOut(settings.animation_speed,function(){$('.pp_loaderIcon').show();callback();});};function _checkPosition(setCount){(setCount>1)?$('.pp_nav').show():$('.pp_nav').hide();};function _fitToViewport(width,height){resized=false;_getDimensions(width,height);imageWidth=width,imageHeight=height;if(((pp_containerWidth>windowWidth)||(pp_containerHeight>windowHeight))&&doresize&&settings.allow_resize&&!percentBased){resized=true,fitting=false;while(!fitting){if((pp_containerWidth>windowWidth)){imageWidth=(windowWidth-200);imageHeight=(height/width)*imageWidth;}else if((pp_containerHeight>windowHeight)){imageHeight=(windowHeight-200);imageWidth=(width/height)*imageHeight;}else{fitting=true;};pp_containerHeight=imageHeight,pp_containerWidth=imageWidth;};_getDimensions(imageWidth,imageHeight);if((pp_containerWidth>windowWidth)||(pp_containerHeight>windowHeight)){_fitToViewport(pp_containerWidth,pp_containerHeight)};};return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(pp_containerHeight),containerWidth:Math.floor(pp_containerWidth)+(settings.horizontal_padding*2),contentHeight:Math.floor(pp_contentHeight),contentWidth:Math.floor(pp_contentWidth),resized:resized};};function _getDimensions(width,height){width=parseFloat(width);height=parseFloat(height);$pp_details=$pp_pic_holder.find('.pp_details');$pp_details.width(width);detailsHeight=parseFloat($pp_details.css('marginTop'))+parseFloat($pp_details.css('marginBottom'));$pp_details=$pp_details.clone().addClass(settings.theme).width(width).appendTo($('body')).css({'position':'absolute','top':-10000});detailsHeight+=$pp_details.height();detailsHeight=(detailsHeight<=34)?36:detailsHeight;if($.browser.msie&&$.browser.version==7)detailsHeight+=8;$pp_details.remove();$pp_title=$pp_pic_holder.find('.ppt');$pp_title.width(width);titleHeight=parseFloat($pp_title.css('marginTop'))+parseFloat($pp_title.css('marginBottom'));$pp_title=$pp_title.clone().appendTo($('body')).css({'position':'absolute','top':-10000});titleHeight+=$pp_title.height();$pp_title.remove();pp_contentHeight=height+detailsHeight;pp_contentWidth=width;pp_containerHeight=pp_contentHeight+titleHeight+$pp_pic_holder.find('.pp_top').height()+$pp_pic_holder.find('.pp_bottom').height();pp_containerWidth=width;} -function _getFileType(itemSrc){if(itemSrc.match(/youtube\.com\/watch/i)||itemSrc.match(/youtu\.be/i)){return'youtube';}else if(itemSrc.match(/vimeo\.com/i)){return'vimeo';}else if(itemSrc.match(/\b.mov\b/i)){return'quicktime';}else if(itemSrc.match(/\b.swf\b/i)){return'flash';}else if(itemSrc.match(/\biframe=true\b/i)){return'iframe';}else if(itemSrc.match(/\bajax=true\b/i)){return'ajax';}else if(itemSrc.match(/\bcustom=true\b/i)){return'custom';}else if(itemSrc.substr(0,1)=='#'){return'inline';}else{return'image';};};function _center_overlay(){if(doresize&&typeof $pp_pic_holder!='undefined'){scroll_pos=_get_scroll();contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width();projectedTop=(windowHeight/2)+scroll_pos['scrollTop']-(contentHeight/2);if(projectedTop<0)projectedTop=0;if(contentHeight>windowHeight) -return;$pp_pic_holder.css({'top':projectedTop,'left':(windowWidth/2)+scroll_pos['scrollLeft']-(contentwidth/2)});};};function _get_scroll(){if(self.pageYOffset){return{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset};}else if(document.documentElement&&document.documentElement.scrollTop){return{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft};}else if(document.body){return{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft};};};function _resize_overlay(){windowHeight=$(window).height(),windowWidth=$(window).width();if(typeof $pp_overlay!="undefined")$pp_overlay.height($(document).height()).width(windowWidth);};function _insert_gallery(){if(isSet&&settings.overlay_gallery&&_getFileType(pp_images[set_position])=="image"&&(settings.ie6_fallback&&!($.browser.msie&&parseInt($.browser.version)==6))){itemWidth=52+5;navWidth=(settings.theme=="facebook"||settings.theme=="pp_default")?50:30;itemsPerPage=Math.floor((pp_dimensions['containerWidth']-100-navWidth)/itemWidth);itemsPerPage=(itemsPerPage";};toInject=settings.gallery_markup.replace(/{gallery}/g,toInject);$pp_pic_holder.find('#pp_full_res').after(toInject);$pp_gallery=$('.pp_pic_holder .pp_gallery'),$pp_gallery_li=$pp_gallery.find('li');$pp_gallery.find('.pp_arrow_next').click(function(){$.prettyPhoto.changeGalleryPage('next');$.prettyPhoto.stopSlideshow();return false;});$pp_gallery.find('.pp_arrow_previous').click(function(){$.prettyPhoto.changeGalleryPage('previous');$.prettyPhoto.stopSlideshow();return false;});$pp_pic_holder.find('.pp_content').hover(function(){$pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeIn();},function(){$pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeOut();});itemWidth=52+5;$pp_gallery_li.each(function(i){$(this).find('a').click(function(){$.prettyPhoto.changePage(i);$.prettyPhoto.stopSlideshow();return false;});});};if(settings.slideshow){$pp_pic_holder.find('.pp_nav').prepend('Play') -$pp_pic_holder.find('.pp_nav .pp_play').click(function(){$.prettyPhoto.startSlideshow();return false;});} -$pp_pic_holder.attr('class','pp_pic_holder '+settings.theme);$pp_overlay.css({'opacity':0,'height':$(document).height(),'width':$(window).width()}).bind('click',function(){if(!settings.modal)$.prettyPhoto.close();});$('a.pp_close').bind('click',function(){$.prettyPhoto.close();return false;});if(settings.allow_expand){$('a.pp_expand').bind('click',function(e){if($(this).hasClass('pp_expand')){$(this).removeClass('pp_expand').addClass('pp_contract');doresize=false;}else{$(this).removeClass('pp_contract').addClass('pp_expand');doresize=true;};_hideContent(function(){$.prettyPhoto.open();});return false;});} -$pp_pic_holder.find('.pp_previous, .pp_nav .pp_arrow_previous').bind('click',function(){$.prettyPhoto.changePage('previous');$.prettyPhoto.stopSlideshow();return false;});$pp_pic_holder.find('.pp_next, .pp_nav .pp_arrow_next').bind('click',function(){$.prettyPhoto.changePage('next');$.prettyPhoto.stopSlideshow();return false;});_center_overlay();};if(!pp_alreadyInitialized&&getHashtag()){pp_alreadyInitialized=true;hashIndex=getHashtag();hashRel=hashIndex;hashIndex=hashIndex.substring(hashIndex.indexOf('/')+1,hashIndex.length-1);hashRel=hashRel.substring(0,hashRel.indexOf('/'));setTimeout(function(){$("a["+pp_settings.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger('click');},50);} -return this.unbind('click.prettyphoto').bind('click.prettyphoto',$.prettyPhoto.initialize);};function getHashtag(){url=location.href;hashtag=(url.indexOf('#prettyPhoto')!==-1)?decodeURI(url.substring(url.indexOf('#prettyPhoto')+1,url.length)):false;return hashtag;};function setHashtag(){if(typeof theRel=='undefined')return;location.hash=theRel+'/'+rel_index+'/';};function clearHashtag(){if(location.href.indexOf('#prettyPhoto')!==-1)location.hash="prettyPhoto";} -function getParam(name,url){name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(url);return(results==null)?"":results[1];}})(jQuery);var pp_alreadyInitialized=false; \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/js/frontend/jquery.timeline.backup.js --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/js/frontend/jquery.timeline.backup.js Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,747 +0,0 @@ -/* - -Content Timeline 3.0 - -Date organised content slider. - -Copyright (c) 2012 Br0 (shindiristudio.com) - -Project site: http://codecanyon.net/ -Project demo: http://shindiristudio.com/timeline - -*/ - -(function($){ - - // EVENTS.timeline - - // init.timeline : triggered when timeline is initialised - // scrollStart.timeline : triggered when item move animation starts - // scrollEnd.timeline : triggered when item move animation ends - // itemOpen.timeline : triggered on click to open item - // itemClose.timeline : triggered on click to close item - - // --------------------------------------------------------- - - // On KeyPress (left) : trigger $.timeline('left') - // On KeyPress (right) : trigger $.timeline('right') - - // --------------------------------------------------------- - - // $.timeline(METHODS) - - // $.timeline('init') : initialises timeline - // $.timeline('destroy') : clears timeline data - // $.timeline('left') : moves one left by one element - // $.timeline('right') : moves right by one element - // $.timeline('open', id) : opens element with 'data-id' = id - // $.timeline('close', id): closes element with 'data-id' = id - // $.timeline('goTo', id) : goes to element width 'data-id' = id - - - var t_methods = { - init : function( options ) { - - // Default settings - var settings = $.extend( { - 'itemClass' : '.item', // class used for timeline items - 'itemOpenClass' : '.item_open', // class used for item details - 'openTriggerClass' : '.item', // class of read more element (default uses whole item to trigger open event) - 'closeText' : 'Close', // text of close button in open item - 'itemMargin' : 10, // spacing between items - 'scrollSpeed' : 500, // animation speed - 'startItem' : 'last', // timeline start item id, 'last' or 'first' can be used insted - 'easing' : 'easeOutSine', // jquery.easing function for animations, - 'categories' : ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], // categories shown above timeline (months are default) - 'nuberOfSegments' : [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], // number of elements per category (number of days) - 'yearsOn' : true, // show years (can be any number you use in data-id (elementNumber/category/yearOrSomeOtherNumber)) - 'swipeOn' : true, // turn on swipe moving function - 'hideTimeline' : false, - 'hideControles' : false - }, options); // Setings - - - // main queries - var $this = this, - $body = $('body'), - $items = $this.find(settings.itemClass), - $itemsOpen = $this.find(settings.itemOpenClass), - itemWidth = $items.first().width(), - itemOpenWidth = $itemsOpen.first().width(); - - // Trigger init event - $this.trigger('init.Timeline'); - - - // If no index found - var startIndex = $items.length-1; - - // Find index of start element - if(settings.startItem == 'first') - { - startIndex = 0; - } - else if (settings.startItem == 'last') - { - startIndex = $items.length-1; - } - else { - $items.each(function(index){ - if(settings.startItem == $(this).attr('data-id')) - { - startIndex = index; - return true; - } - }); - } - $items.each(function(index){ - $(this).attr('data-count', index); - $(this).next(settings.itemOpenClass).attr('data-count', index); - if(!$(this).hasClass(settings.openTriggerClass)) { - $(this).find(settings.openTriggerClass).attr('data-count', index); - } - }); - - // Create wrapper elements, and needed properties - $this.append('
    '); - $this.css({width: '100%', 'overflow' : 'hidden', marginLeft : 'auto', marginRight : 'auto','text-align': 'center', height:0}); - $this.wrapInner('
    '); - $this.find('.timeline_items').css('text-align','left'); - if(!settings.hideControles) { - $this.append('
    '); - } - - // ZoomOut placement fix - $this.wrapInner('
    '); - $this.find('.timeline_items_holder').css({width: '300px', marginLeft : 'auto', marginRight : 'auto'}); - - - $items.css({paddingLeft:0 , paddingRight:0, marginLeft: settings.itemMargin/2, marginRight: settings.itemMargin/2, float: 'left', position:'relative'}); - - $itemsOpen.each(function(){ - $(this).prepend('
    '+settings.closeText+'
    '); - $(this).wrapInner('
    ').find('div:first').css({position: 'relative'}); - $(this).css({width: 0, padding:0 , margin: 0, float: 'left', display : 'none', position : 'relative', overflow : 'hidden'}); - }); - - - // Get new queries - var $iholder = $this.find('.timeline_items:first'), - $line = $this.find('.t_line_wrapper:first'), - margin = 300/2 - (itemWidth + settings.itemMargin)*(1/2 + startIndex) , - width = (itemWidth + settings.itemMargin)*$items.length + (itemOpenWidth + settings.itemMargin) + 660 , - data = $this.data('timeline'); - - // Set margin so start element would place in midle of the screen - $iholder.css({width: width, marginLeft: margin}); - - - - - // If the plugin hasn't been initialized yet - if (!data){ - $this.data('timeline', { - currentIndex : startIndex, - itemCount : $items.length, - margin : margin, - itemWidth : itemWidth, - itemOpenWidth : itemOpenWidth, - lineMargin : 0, - lineViewCount : 0, - options : settings, - items : $items, - iholder : $iholder, - open : false, - noAnimation : false, - marginResponse: false, - mousedown : false, - mousestartpos : 0 - }); - } - if(!settings.hideTimeline) { - $this.timeline('createElements'); - } - - - - // Bind keyLeft and KeyRight functions - $(document).keydown(function(e){ - if (e.keyCode == 37) { - $this.timeline('left'); - return false; - } - if (e.keyCode == 39) { - $this.timeline('right'); - return false; - } - }); - - // Respond to window resizing - $(window).resize(function() { - //var id = $this.find('.active:first').attr('href').substr(1); - var data = $this.data('timeline'), - id = $items.eq(data.currentIndex).attr('data-id'); - - itemWidth = $items.first().width(), - itemOpenWidth = $itemsOpen.first().find('div:first').width(); - - data.margin += data.itemCount*(data.itemWidth-itemWidth); - data.itemWidth = itemWidth; - - if(data.open) data.margin += (data.itemOpenWidth-itemOpenWidth)/2; - data.itemOpenWidth = itemOpenWidth; - - - if($('body').width() < 767 && data.open && !data.marginResponse) { - data.margin -= (itemWidth+settings.itemMargin)/2; - data.marginResponse = true; - } - else if($('body').width() >= 767 && data.marginResponse && data.open) { - data.margin += (itemWidth+settings.itemMargin)/2; - data.marginResponse = false; - } - - data.noAnimation = true; - $this.timeline('goTo', id); - }); - - // Bind left on click - $this.find('.t_left').click(function(){ - $this.timeline('left'); - }); - - // Bind right on click - $this.find('.t_right').click(function(){ - $this.timeline('right'); - }); - - // SWIPE bind - - if(settings.swipeOn) { - $items.find('*').each(function(){ - $(this).css({'-webkit-touch-callout': 'none', - '-webkit-user-select': 'none', - '-khtml-user-select': 'none', - '-moz-user-select': 'none', - '-ms-user-select': 'none', - 'user-select': 'none'}); - }); - - $this.find(settings.itemClass).mousedown(function(e){ - $this.timeline('mouseDown', e.pageX); - }); - $(document).mouseup(function(e){ - var data = $this.data('timeline'); - if(data.mousedown) { - $this.timeline('mouseUp', e.pageX); - } - }); - } - - - - // Bind open on click - $this.find(settings.openTriggerClass).click(function(){ - $this.timeline('goTo',$(this).attr('data-id'), $(this).attr('data-count'), true); - }); - - // Bind close on click - $this.find('.t_close').click(function(){ - $this.timeline('close',$(this).attr('data-id'),$(this).attr('data-count')); - }); - - // Show when loaded - $this.css({height: 'auto'}).show(); - - // Reposition nodes due to their width - $this.find('.t_line_node').each(function(){ - if($(this).width() < 10) $(this).width(12); - $(this).css({marginLeft: -$(this).width()/2}); - }); - return $this; - }, - - // Clear data - destroy : function( ) { - $(document).unbind('mouseup'); - $(window).unbind('resize'); - var $this = this, - data = $this.data('timeline'); - $this.removeData('timeline'); - - }, - - mouseDown : function(xpos) { - var $this = this, - data = $this.data('timeline'), - xmargin = 0; - data.mousedown = true; - data.mousestartpos = xpos; - - $('body').css('cursor','move'); - $(document).mousemove(function(e){ - xmargin = data.margin - xpos + e.pageX; - data.iholder.css('marginLeft', xmargin + 'px'); - }); - }, - - mouseUp : function(xpos) { - - var $this = this, - data = $this.data('timeline'), - itemWidth = data.itemWidth + data.options.itemMargin, - itemC = data.currentIndex, - mod = 0, - xmargin = xpos - data.mousestartpos; - data.mousedown = false; - - $(document).unbind('mousemove'); - $('body').css('cursor','auto'); - - itemC -= parseInt(xmargin/itemWidth); - mod = xmargin%itemWidth; - if (xmargin < 0 && mod < -itemWidth/2) { - itemC++; - } - if (xmargin > 0 && mod > itemWidth/2) { - itemC--; - } - - if(itemC < 0) { - itemC = 0; - } - if(itemC >= data.itemCount) { - itemC = data.itemCount-1; - } - - $this.timeline('goTo', data.items.eq(itemC).attr('data-id'), data.items.eq(itemC).attr('data-count')); - - - }, - - open : function (id, data_count) { - var $this = this, - data = $this.data('timeline'), - $items = $this.find(data.options.itemOpenClass), - speed = data.options.scrollSpeed, - width = data.itemOpenWidth, - easing = data.options.easin, - itemMargin = data.options.itemMargin; - - - $items.each(function(){ - if ($(this).attr('data-id') == id) { - if (!data_count || data_count == $(this).attr('data-count')) { - - // Trigger itemOpen event - $this.trigger('itemOpen.Timeline'); - - // Open content and move margin - $(this).stop(true).show().animate({width: width, marginLeft: itemMargin/2, marginRight: itemMargin/2,}, speed, easing); - if($('body').width() < 767) { - data.margin -= (data.itemWidth+data.options.itemMargin)/2; - data.marginResponse = true; - } - else { - data.marginResponse = false; - } - data.margin -= (width + data.options.itemMargin + data.itemWidth)/2 - data.itemWidth/2; - data.iholder.stop(true).animate({marginLeft : data.margin}, speed, easing); - data.open = id; - } - } - - }); - return $this; - }, - - close : function (id, idOpen, dataCountOpen) { - var $this = this, - data = $this.data('timeline'), - $items = $this.find(data.options.itemOpenClass), - speed = data.options.scrollSpeed, - width = data.itemOpenWidth, - easing = data.options.easing; - - - $items.each(function(){ - if ($(this).attr('data-id') == id && $(this).is(":visible")) { - // Trigger itemOpen event - $this.trigger('itemClose.Timeline'); - - // Close content and move margin - $(this).stop(true).animate({width: 0, margin:0}, speed, easing, function(){$(this).hide()}); - if (data.marginResponse) { - data.margin += (data.itemWidth+data.options.itemMargin)/2; - } - data.margin += (width + data.options.itemMargin)/2; - data.iholder.stop(true).animate({marginLeft : data.margin}, speed, easing); - data.open = false; - } - }); - if(idOpen) { - $this.timeline('open', idOpen, dataCountOpen); - } - return $this; - }, - - - // Move one step left - right : function() { - var $this = this, - data = $this.data('timeline'), - speed = data.options.scrollSpeed, - easing = data.options.easing; - if (data.currentIndex < data.itemCount-1) - { - var dataId = data.items.eq(data.currentIndex+1).attr('data-id'); - var dataCount = data.items.eq(data.currentIndex+1).attr('data-count'); - $this.timeline('goTo', dataId, dataCount); - } - else - { - data.iholder.stop(true).animate({marginLeft : data.margin-50}, speed/2, easing).animate({marginLeft : data.margin}, speed/2, easing); - } - return $this - }, - - // Move one step right - left : function( ) { - var $this = this, - data = $this.data('timeline'), - speed = data.options.scrollSpeed, - easing = data.options.easing; - if (data.currentIndex > 0) - { - var dataId = data.items.eq(data.currentIndex-1).attr('data-id'); - var dataCount = data.items.eq(data.currentIndex-1).attr('data-count'); - $this.timeline('goTo', dataId, dataCount); - } - else - { - data.iholder.stop(true).animate({marginLeft : data.margin+50}, speed/2, easing).animate({marginLeft : data.margin}, speed/2, easing); - } - return $this; - }, - - // Go to item - goTo : function (id, data_count, openElement) { - var $this = this, - data = $this.data('timeline'), - speed = data.options.scrollSpeed, - easing = data.options.easing, - $items = data.items, - timelineWidth = $this.find('.timeline_line').width(), - count = -1, - found = false; - - // Find item index - $items.each(function(index){ - if(id == $(this).attr('data-id')) - { - if (!data_count || data_count == $(this).attr('data-count')) - { - found = true; - count = index; - return false; - } - } - }); - - // Move if fount - if(found) - { - // Move lineView to current element - var $nodes = $this.find('.t_line_node'); - $nodes.removeClass('active'); - var $goToNode = $nodes.parent().parent().find('[href="#'+id+'"]').addClass('active'); - data.lineMargin = -parseInt($goToNode.parent().parent().attr('data-id'),10)*100; - - // check if responsive width - if($this.find('.t_line_view:first').width() > $this.find('.timeline_line').width()) { - data.lineMargin *=2; - if ($goToNode.parent().hasClass('right')) data.lineMargin -= 100; - } - - if(data.noAnimation){ - data.noAnimation = false; - $this.find('.t_line_wrapper').stop(true).css({marginLeft : data.lineMargin+'%'}); - } - else { - $this.find('.t_line_wrapper').stop(true).animate({marginLeft : data.lineMargin+'%'}, speed, easing ); - } - - - if(data.open) { - $this.timeline('close', data.open, id, data_count); - } - else if (openElement) { - $this.timeline('open', id, data_count); - } - - // Trigger ScrollStart event - $this.trigger('scrollStart.Timeline'); - - // Scroll - - data.margin += (data.itemWidth + data.options.itemMargin)*(data.currentIndex - count); - data.currentIndex = count; - - var multiply = (parseInt(data.iholder.css('margin-left')) - data.margin)/data.itemWidth; - data.iholder.stop(true).animate({marginLeft : data.margin}, speed+(speed/5)*(Math.abs(multiply)-1), easing, function(){ - // Trigger ScrollStop event - $this.trigger('scrollStop.Timeline'); - }); - } - return $this; - }, - - // move line to the left - lineLeft : function() { - var $this = this, - data = $this.data('timeline'), - speed = data.options.scrollSpeed, - easing = data.options.easing; - if (data.lineMargin != 0 && data.options.categories) { - data.lineMargin += 100; - $this.find('.t_line_wrapper').stop(true).animate({marginLeft : data.lineMargin+'%'}, speed, easing); - } - - }, - - // move line to the right - lineRight : function() { - var $this = this, - data = $this.data('timeline'), - speed = data.options.scrollSpeed, - easing = data.options.easing; - if ($this.find('.t_line_view:first').width() > $this.find('.timeline_line').width()) - var viewCount = data.lineViewCount*2; - else - var viewCount = data.lineViewCount; - - if (data.lineMargin != -(viewCount-1)*100 && data.options.categories) { - data.lineMargin -= 100; - $this.find('.t_line_wrapper').stop(true).animate({marginLeft : data.lineMargin+'%'}, speed, easing); - } - - }, - - // Create timeline elements and css dependent properties - createElements : function() { - var $this = this, - data = $this.data('timeline'), - $items = data.items; - - var html = '\n' + -'
    \n' + -'
    \n'; - $this.prepend(html); - var timelineWidth = $this.find('.timeline_line').width(), - cnt = 0, - nodes = new Array(), - months = [''].concat(data.options.categories); - monthsDays = [0].concat(data.options.nuberOfSegments), - minM = months.length, - minY = 99999, - maxM = 0, - maxY = 0; - if(!data.options.yearsOn) maxY = 99999; - - // find timeline date range and make node elements - $items.each(function(){ - var dataId = $(this).attr('data-id'), - nodeName = $(this).attr('data-name'), - dataDesc = $(this).attr('data-description'), - dataArray = dataId.split('/'), - d = parseInt(dataArray[0],10), - m = (months.indexOf(dataArray[1]) != -1) ? months.indexOf(dataArray[1]) : parseInt(dataArray[1],10), - y = parseInt(dataArray[2],10); - - - maxY = Math.max(maxY, y); - maxM = Math.max(maxM, m); - minY = Math.min(minY, y); - minM = Math.min(minM, m); - - - // Store node element - nodes[dataId] = ''+((typeof nodeName != 'undefined') ? nodeName : d); - - if(typeof dataDesc != 'undefined') nodes[dataId]+= ''+dataDesc+''; - - nodes[dataId]+='\n'; - cnt++; - }); - - // Make wrapper elements - html = '\n' + -'
    \n' + -'
    \n' + -'
    \n'; - - cnt=0; - // Prepare for loop, every view has 2 months, we show both if first has nodes in it - if(maxM > 0) { - if (minM%2 == 0) minM--; - - // Set max to be on first next view (the one that is going to stop the loop) - if (maxM%2 == 0) { - if (maxM == 12) { - maxM = 1; maxY++; - } - else maxM++; - } - else { - maxM +=2; - if (maxM == 13) { - maxM = 1; maxY++; - } - } - - - if (!data.options.categories) { - html += - '
    \n'+ - '
    \n'; - for (var x in nodes) { - html += nodes[x]; - } - html += '
    \n'+ - '
    '; - } - else { - - // Generate months and place nodes - while ((minY != maxY && !isNaN(minY) && !isNaN(maxY)) || minM != maxM) { - - html += - '
    \n'+ - (data.options.yearsOn ? '

    '+minY+'

    \n' : '' )+ - '
    \n'+ - '

    '+months[minM]+(data.options.yearsOn ? ' '+(data.options.yearsOn ? minY: '' )+'' : '' )+'

    \n'; - - // Fill with nodes - for (x in nodes) { - var dataArray = x.split('/'); - m = (months.indexOf(dataArray[1]) != -1) ? months.indexOf(dataArray[1]) : parseInt(dataArray[1],10); - if(!data.options.yearsOn) y = minY; - else y = parseInt(dataArray[2],10); - if (m == minM && (y == minY || !data.options.yearsOn)){ - html+= nodes[x]; - nodes.splice(x,1); - } - } - minM++; - html += - '
    \n'+ - '
    \n'+ - '

    '+(typeof months[minM] !== 'undefined' ? months[minM] : '')+(data.options.yearsOn ? ' '+(data.options.yearsOn ? minY: '' )+'' : '' )+'

    \n'; - - // Fill with nodes - for (x in nodes) { - dataArray = x.split('/'); - m = (months.indexOf(dataArray[1]) != -1) ? months.indexOf(dataArray[1]) : parseInt(dataArray[1],10); - if(!data.options.yearsOn) y = minY; - else y = parseInt(dataArray[2],10); - - if (m == minM && (y == minY || !data.options.yearsOn)){ - html+= nodes[x]; - nodes.splice(x,1); - } - } - html += - '
    \n'+ - '
    \n'+ - '
    '; - - if (minM == months.length-1) { minM = 1; minY++;} - else { minM++; } - - cnt++; - - if(minM == maxM && !data.options.yearsOn) break; - - } - - } - } - - - html += '\n' + -'
    \n'+ -'
    \n'+ -'
    \n'; - - // Set number of View elements - data.lineViewCount = cnt; - // Add generated html and set width & margin for dinamic timeline - $this.find('.timeline_line').html(html); - $this.find('.t_line_node').each(function(){ - var $thisNode = $(this); - $(this).find('span').hide(); - $(this).hover(function(){ - $items.each(function(){ - if($(this).attr('data-id') == $thisNode.attr('href').substr(1)) { - $(this).addClass('item_node_hover'); - } - }); - $(this).find('span').show(); - }, function(){ - $(this).find('span').hide(); - $('.item_node_hover').removeClass('item_node_hover'); - }); - - //Position lineView to selected item - if($(this).hasClass('active')) { - data.lineMargin = -parseInt($(this).parent().parent('.t_line_view').attr('data-id'),10)*100; - $this.find('.t_line_wrapper').css('margin-left', data.lineMargin+'%'); - } - // Bind goTo function to click event - $(this).click(function(e){ - e.preventDefault(); - $this.find('.t_line_node').removeClass('active'); - $(this).addClass('active'); - $this.timeline('goTo', $(this).attr('href').substr(1)); - }); - }); - - $this.find('#t_line_left').click(function(){ - $this.timeline('lineLeft'); - }); - - $this.find('#t_line_right').click(function(){ - $this.timeline('lineRight'); - }); - - } - }; - - // Initiate methods - $.fn.timeline = function( method ) { - - if ( t_methods[method] ) { - return t_methods[method].apply( this, Array.prototype.slice.call( arguments, 1 )); - } else if ( typeof method === 'object' || ! method ) { - return t_methods.init.apply( this, arguments ); - } else { - $.error( 'Method ' + method + ' does not exist on jQuery.timeline' ); - } - - }; - - - - - -})(jQuery); - -if (!Array.prototype.indexOf) { - Array.prototype.indexOf = function(obj, start) { - for (var i = (start || 0), j = this.length; i < j; i++) { - if (this[i] === obj) { return i; } - } - return -1; - } - -} diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/js/frontend/jquery.timeline.js --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/js/frontend/jquery.timeline.js Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,841 +0,0 @@ -/* - -Content Timeline 3.1 - -Date organised content slider. - -Copyright (c) 2012 Br0 (shindiristudio.com) - -Project site: http://codecanyon.net/ -Project demo: http://shindiristudio.com/timeline - -*/ - -(function($){ - - // EVENTS.timeline - - // init.timeline : triggered when timeline is initialised - // scrollStart.timeline : triggered when item move animation starts - // scrollEnd.timeline : triggered when item move animation ends - // itemOpen.timeline : triggered on click to open item - // itemClose.timeline : triggered on click to close item - - // --------------------------------------------------------- - - // On KeyPress (left) : trigger $.timeline('left') - // On KeyPress (right) : trigger $.timeline('right') - - // --------------------------------------------------------- - - // $.timeline(METHODS) - - // $.timeline('init') : initialises timeline - // $.timeline('destroy') : clears timeline data - // $.timeline('left') : moves one left by one element - // $.timeline('right') : moves right by one element - // $.timeline('open', id) : opens element with 'data-id' = id - // $.timeline('close', id): closes element with 'data-id' = id - // $.timeline('goTo', id) : goes to element width 'data-id' = id - - - var t_methods = { - init : function( options ) { - - // Default settings - var settings = $.extend( { - 'itemClass' : '.item', // class used for timeline items - 'itemOpenClass' : '.item_open', // class used for item details - 'openTriggerClass' : '.item', // class of read more element (default uses whole item to trigger open event) - 'closeText' : 'Close', // text of close button in open item - 'itemMargin' : 10, // spacing between items - 'scrollSpeed' : 500, // animation speed - 'startItem' : 'last', // timeline start item id, 'last' or 'first' can be used insted - 'easing' : 'easeOutSine', // jquery.easing function for animations, - 'categories' : ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], // categories shown above timeline (months are default) - 'nuberOfSegments' : [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], // number of elements per category (number of days) - 'yearsOn' : true, // show years (can be any number you use in data-id (elementNumber/category/yearOrSomeOtherNumber)) - 'swipeOn' : true, // turn on swipe moving function - 'hideTimeline' : false, - 'hideControles' : false - }, options); // Setings - - - // main queries - var $this = this, - $body = $('body'), - $items = $this.find(settings.itemClass), - $itemsOpen = $this.find(settings.itemOpenClass), - itemWidth = $items.first().width(), - itemOpenWidth = $itemsOpen.first().width(); - - // Trigger init event - $this.trigger('init.Timeline'); - - - // If no index found - var startIndex = $items.length-1; - - // Find index of start element - if(settings.startItem == 'first') - { - startIndex = 0; - } - else if (settings.startItem == 'last') - { - startIndex = $items.length-1; - } - else { - $items.each(function(index){ - if(settings.startItem == $(this).attr('data-id')) - { - startIndex = index; - return true; - } - }); - } - $items.each(function(index){ - $(this).attr('data-count', index); - $(this).next(settings.itemOpenClass).attr('data-count', index); - if(!$(this).hasClass(settings.openTriggerClass)) { - $(this).find(settings.openTriggerClass).attr('data-count', index); - } - }); - - // Create wrapper elements, and needed properties - $this.append('
    '); - $this.css({width: '100%', 'overflow' : 'hidden', marginLeft : 'auto', marginRight : 'auto','text-align': 'center', height:0}); - $this.wrapInner('
    '); - $this.find('.timeline_items').css('text-align','left'); - if(!settings.hideControles) { - $this.append('
    '); - } - - // ZoomOut placement fix - $this.wrapInner('
    '); - $this.find('.timeline_items_holder').css({width: '300px', marginLeft : 'auto', marginRight : 'auto'}); - - - $items.css({paddingLeft:0 , paddingRight:0, marginLeft: settings.itemMargin/2, marginRight: settings.itemMargin/2, float: 'left', position:'relative'}); - - $itemsOpen.each(function(){ - $(this).prepend('
    '+settings.closeText+'
    '); - $(this).wrapInner('
    ').find('div:first').css({position: 'relative'}); - $(this).css({width: 0, padding:0 , margin: 0, float: 'left', display : 'none', position : 'relative', overflow : 'hidden'}); - }); - - - // Get new queries - var $iholder = $this.find('.timeline_items:first'), - $line = $this.find('.t_line_wrapper:first'), - margin = 300/2 - (itemWidth + settings.itemMargin)*(1/2 + startIndex) , - width = (itemWidth + settings.itemMargin)*$items.length + (itemOpenWidth + settings.itemMargin) + 660 , - data = $this.data('timeline'); - - // Set margin so start element would place in midle of the screen - $iholder.css({width: width, marginLeft: margin}); - - - - - // If the plugin hasn't been initialized yet - if (!data){ - $this.data('timeline', { - currentIndex : startIndex, - itemCount : $items.length, - margin : margin, - itemWidth : itemWidth, - itemOpenWidth : itemOpenWidth, - lineMargin : 0, - lineViewCount : 0, - options : settings, - items : $items, - iholder : $iholder, - open : false, - noAnimation : false, - marginResponse: false, - mousedown : false, - mousestartpos : 0 - }); - } - if(!settings.hideTimeline) { - $this.timeline('createElements'); - } - - - - // Bind keyLeft and KeyRight functions - $(document).keydown(function(e){ - if (e.keyCode == 37) { - $this.timeline('left'); - return false; - } - if (e.keyCode == 39) { - $this.timeline('right'); - return false; - } - }); - - // Respond to window resizing - $(window).resize(function() { - //var id = $this.find('.active:first').attr('href').substr(1); - var data = $this.data('timeline'), - id = $items.eq(data.currentIndex).attr('data-id'); - item_data_count = $items.eq(data.currentIndex).attr('data-count'); - - itemWidth = $items.first().width(), - itemOpenWidth = $itemsOpen.first().find('div:first').width(); - - data.margin += data.itemCount*(data.itemWidth-itemWidth); - data.itemWidth = itemWidth; - - if(data.open) data.margin += (data.itemOpenWidth-itemOpenWidth)/2; - data.itemOpenWidth = itemOpenWidth; - - - if($('body').width() < 767 && data.open && !data.marginResponse) { - data.margin -= (itemWidth+settings.itemMargin)/2; - data.marginResponse = true; - } - else if($('body').width() >= 767 && data.marginResponse && data.open) { - data.margin += (itemWidth+settings.itemMargin)/2; - data.marginResponse = false; - } - - data.noAnimation = true; - $this.timeline('goTo', id, item_data_count); - }); - - // Bind left on click - $this.find('.t_left').click(function(){ - $this.timeline('left'); - }); - - // Bind right on click - $this.find('.t_right').click(function(){ - $this.timeline('right'); - }); - - // SWIPE bind - - if(settings.swipeOn) { - $items.find('*').each(function(){ - $(this).css({'-webkit-touch-callout': 'none', - '-webkit-user-select': 'none', - '-khtml-user-select': 'none', - '-moz-user-select': 'none', - '-ms-user-select': 'none', - 'user-select': 'none'}); - }); - $this.bind('touchstart',function(e){ - $this.timeline('touchStart', e.originalEvent.touches[0].pageX); - }); - - - $this.find(settings.itemClass).mousedown(function(e){ - $this.timeline('mouseDown', e.pageX); - }); - - - $(document).bind('touchend',function(e){ - data = $this.data('timeline'); - $this.timeline('touchEnd', data.touchpos); - }); - - $(document).mouseup(function(e){ - var data = $this.data('timeline'); - if(data.mousedown) { - $this.timeline('mouseUp', e.pageX); - } - }); - } - - - - // Bind open on click - $this.find(settings.openTriggerClass).click(function(){ - $this.timeline('goTo',$(this).attr('data-id'), $(this).attr('data-count'), true); - }); - - // Bind close on click - $this.find('.t_close').click(function(){ - $this.timeline('close',$(this).attr('data-id'),$(this).attr('data-count')); - }); - - // Show when loaded - $this.css({height: 'auto'}).show(); - $this.prev('.timelineLoader').hide(); - - // Reposition nodes due to their width - $this.find('.t_line_node').each(function(){ - if($(this).width() < 10) $(this).width(12); - $(this).css({marginLeft: -$(this).width()/2}); - }); - return $this; - }, - - // Clear data - destroy : function( ) { - $(document).unbind('mouseup'); - $(window).unbind('resize'); - var $this = this, - data = $this.data('timeline'); - $this.removeData('timeline'); - - }, - - touchStart : function(xpos) { - var $this = this, - data = $this.data('timeline'), - xmargin = 0; - data.mousedown = true; - data.mousestartpos = xpos; - - $this.bind('touchmove', function(e){ - data.touchpos = e.originalEvent.touches[0].pageX; - xmargin = data.margin - xpos + e.originalEvent.touches[0].pageX; - data.iholder.css('marginLeft', xmargin + 'px'); - }); - }, - - mouseDown : function(xpos) { - var $this = this, - data = $this.data('timeline'), - xmargin = 0; - data.mousedown = true; - data.mousestartpos = xpos; - - $('body').css('cursor','move'); - $(document).mousemove(function(e){ - xmargin = data.margin - xpos + e.pageX; - data.iholder.css('marginLeft', xmargin + 'px'); - }); - }, - - touchEnd : function(xpos) { - var $this = this, - data = $this.data('timeline'), - itemWidth = data.itemWidth + data.options.itemMargin, - itemC = data.currentIndex, - mod = 0, - xmargin = xpos - data.mousestartpos; - data.mousedown = false; - - itemC -= parseInt(xmargin/itemWidth); - mod = xmargin%itemWidth; - if (xmargin < 0 && mod < -itemWidth/2) { - itemC++; - } - if (xmargin > 0 && mod > itemWidth/2) { - itemC--; - } - - if(itemC < 0) { - itemC = 0; - } - if(itemC >= data.itemCount) { - itemC = data.itemCount-1; - } - - $this.timeline('goTo', data.items.eq(itemC).attr('data-id'), data.items.eq(itemC).attr('data-count')); - }, - - mouseUp : function(xpos) { - - var $this = this, - data = $this.data('timeline'), - itemWidth = data.itemWidth + data.options.itemMargin, - itemC = data.currentIndex, - mod = 0, - xmargin = xpos - data.mousestartpos; - data.mousedown = false; - - $(document).unbind('mousemove'); - $('body').css('cursor','auto'); - - itemC -= parseInt(xmargin/itemWidth); - mod = xmargin%itemWidth; - if (xmargin < 0 && mod < -itemWidth/2) { - itemC++; - } - if (xmargin > 0 && mod > itemWidth/2) { - itemC--; - } - - if(itemC < 0) { - itemC = 0; - } - if(itemC >= data.itemCount) { - itemC = data.itemCount-1; - } - - $this.timeline('goTo', data.items.eq(itemC).attr('data-id'), data.items.eq(itemC).attr('data-count')); - - - }, - - open : function (id, data_count) { - var $this = this, - data = $this.data('timeline'), - $items = $this.find(data.options.itemOpenClass), - speed = data.options.scrollSpeed, - width = data.itemOpenWidth, - easing = data.options.easin, - itemMargin = data.options.itemMargin; - - - $items.each(function(){ - if ($(this).attr('data-id') == id) { - if (!data_count || data_count == $(this).attr('data-count')) { - var $newThis = $(this); - // Trigger itemOpen event - $this.trigger('itemOpen.Timeline'); - data.open_count = data_count; - // Open content and move margin - $(this).stop(true).show().animate({width: width, marginLeft: itemMargin/2, marginRight: itemMargin/2,}, speed, easing); - - if (typeof $(this).attr('data-access') != 'undefined' && $(this).attr('data-access') != '') { - var action = $(this).attr('data-access'); - $.post(action, function(data){ - - $('body').append(''); - $('.ajax_preloading_holder').html(data); - if ($('.ajax_preloading_holder img').length > 0 ) { - $('.ajax_preloading_holder img').load(function() { - $newThis.find('.item_open_content').html(data); - $('.ajax_preloading_holder').remove(); - $(this).attr('data-access', ''); - $newThis.find('.scrollable-content').mCustomScrollbar(); - $newThis.find("a[rel^='prettyPhoto']").prettyPhoto(); - $newThis.find('.timeline_rollover_bottom').timelineRollover('bottom'); - }); - } - else { - $newThis.find('.item_open_content').html(data); - $('.ajax_preloading_holder').remove(); - $(this).attr('data-access', ''); - } - }); - } - - if($('body').width() < 767) { - data.margin -= (data.itemWidth+data.options.itemMargin)/2; - data.marginResponse = true; - } - else { - data.marginResponse = false; - } - data.margin -= (width + data.options.itemMargin + data.itemWidth)/2 - data.itemWidth/2; - data.iholder.stop(true).animate({marginLeft : data.margin}, speed, easing); - data.open = id; - } - } - - }); - return $this; - }, - - close : function (id, idOpen, dataCountOpen) { - var $this = this, - data = $this.data('timeline'), - $items = $this.find(data.options.itemOpenClass), - speed = data.options.scrollSpeed, - width = data.itemOpenWidth, - easing = data.options.easing; - - - $items.each(function(){ - if ($(this).attr('data-id') == id && $(this).attr('data-count') == data.open_count && $(this).is(":visible") ) { - // Trigger itemOpen event - $this.trigger('itemClose.Timeline'); - - // Close content and move margin - $(this).stop(true).animate({width: 0, margin:0}, speed, easing, function(){$(this).hide()}); - if (data.marginResponse) { - data.margin += (data.itemWidth+data.options.itemMargin)/2; - } - data.margin += (width + data.options.itemMargin)/2; - data.iholder.stop(true).animate({marginLeft : data.margin}, speed, easing); - data.open = false; - } - }); - if(idOpen) { - $this.timeline('open', idOpen, dataCountOpen); - } - return $this; - }, - - - // Move one step left - right : function() { - var $this = this, - data = $this.data('timeline'), - speed = data.options.scrollSpeed, - easing = data.options.easing; - if (data.currentIndex < data.itemCount-1) - { - var dataId = data.items.eq(data.currentIndex+1).attr('data-id'); - var dataCount = data.items.eq(data.currentIndex+1).attr('data-count'); - $this.timeline('goTo', dataId, dataCount); - } - else - { - data.iholder.stop(true).animate({marginLeft : data.margin-50}, speed/2, easing).animate({marginLeft : data.margin}, speed/2, easing); - } - return $this - }, - - // Move one step right - left : function( ) { - var $this = this, - data = $this.data('timeline'), - speed = data.options.scrollSpeed, - easing = data.options.easing; - if (data.currentIndex > 0) - { - var dataId = data.items.eq(data.currentIndex-1).attr('data-id'); - var dataCount = data.items.eq(data.currentIndex-1).attr('data-count'); - $this.timeline('goTo', dataId, dataCount); - } - else - { - data.iholder.stop(true).animate({marginLeft : data.margin+50}, speed/2, easing).animate({marginLeft : data.margin}, speed/2, easing); - } - return $this; - }, - - // Go to item - goTo : function (id, data_count, openElement) { - var $this = this, - data = $this.data('timeline'), - speed = data.options.scrollSpeed, - easing = data.options.easing, - $items = data.items, - timelineWidth = $this.find('.timeline_line').width(), - count = -1, - found = false; - - // Find item index - $items.each(function(index){ - if(id == $(this).attr('data-id')) - { - if (!data_count || data_count == $(this).attr('data-count')) - { - found = true; - count = index; - return false; - } - } - }); - - // Move if fount - if(found) - { - // Move lineView to current element - var $nodes = $this.find('.t_line_node'); - $nodes.removeClass('active'); - var $goToNode = $nodes.parent().parent().find('[href="#'+id+'"]').addClass('active'); - data.lineMargin = -parseInt($goToNode.parent().parent().attr('data-id'),10)*100; - - // check if responsive width - if($this.find('.t_line_view:first').width() > $this.find('.timeline_line').width()) { - data.lineMargin *=2; - if ($goToNode.parent().hasClass('right')) data.lineMargin -= 100; - } - - if(data.noAnimation){ - data.noAnimation = false; - $this.find('.t_line_wrapper').stop(true).css({marginLeft : data.lineMargin+'%'}); - } - else { - $this.find('.t_line_wrapper').stop(true).animate({marginLeft : data.lineMargin+'%'}, speed, easing ); - } - - - if(data.open) { - $this.timeline('close', data.open, id, data_count); - } - else if (openElement) { - $this.timeline('open', id, data_count); - } - - // Trigger ScrollStart event - $this.trigger('scrollStart.Timeline'); - - // Scroll - - data.margin += (data.itemWidth + data.options.itemMargin)*(data.currentIndex - count); - data.currentIndex = count; - - var multiply = (parseInt(data.iholder.css('margin-left')) - data.margin)/data.itemWidth; - data.iholder.stop(true).animate({marginLeft : data.margin}, speed+(speed/5)*(Math.abs(multiply)-1), easing, function(){ - // Trigger ScrollStop event - $this.trigger('scrollStop.Timeline'); - }); - } - return $this; - }, - - // move line to the left - lineLeft : function() { - var $this = this, - data = $this.data('timeline'), - speed = data.options.scrollSpeed, - easing = data.options.easing; - if (data.lineMargin != 0 && data.options.categories) { - data.lineMargin += 100; - $this.find('.t_line_wrapper').stop(true).animate({marginLeft : data.lineMargin+'%'}, speed, easing); - } - - }, - - // move line to the right - lineRight : function() { - var $this = this, - data = $this.data('timeline'), - speed = data.options.scrollSpeed, - easing = data.options.easing; - if ($this.find('.t_line_view:first').width() > $this.find('.timeline_line').width()) - var viewCount = data.lineViewCount*2; - else - var viewCount = data.lineViewCount; - - if (data.lineMargin != -(viewCount-1)*100 && data.options.categories) { - data.lineMargin -= 100; - $this.find('.t_line_wrapper').stop(true).animate({marginLeft : data.lineMargin+'%'}, speed, easing); - } - - }, - - // Create timeline elements and css dependent properties - createElements : function() { - var $this = this, - data = $this.data('timeline'), - $items = data.items; - - var html = '\n' + -'
    \n' + -'
    \n'; - $this.prepend(html); - var timelineWidth = $this.find('.timeline_line').width(), - cnt = 0, - nodes = new Array(), - months = [''].concat(data.options.categories); - monthsDays = [0].concat(data.options.nuberOfSegments), - minM = months.length, - minY = 99999, - maxM = 0, - maxY = 0; - if(!data.options.yearsOn) maxY = 99999; - - // find timeline date range and make node elements - $items.each(function(){ - var dataId = $(this).attr('data-id'), - nodeName = $(this).attr('data-name'), - dataDesc = $(this).attr('data-description'), - dataArray = dataId.split('/'), - d = parseInt(dataArray[0],10), - m = ($.inArray(dataArray[1],months) != -1) ? $.inArray(dataArray[1],months) : parseInt(dataArray[1],10), - y = parseInt(dataArray[2],10); - - - maxY = Math.max(maxY, y); - maxM = Math.max(maxM, m); - minY = Math.min(minY, y); - minM = Math.min(minM, m); - - - // Store node element - nodes[dataId] = ''+((typeof nodeName != 'undefined') ? nodeName : d); - - if(typeof dataDesc != 'undefined') nodes[dataId]+= ''+dataDesc+''; - - nodes[dataId]+='\n'; - cnt++; - }); - - // Make wrapper elements - html = '\n' + -'
    \n' + -'
    \n' + -'
    \n'; - - cnt=0; - // Prepare for loop, every view has 2 months, we show both if first has nodes in it - if(maxM > 0) { - if (minM%2 == 0) minM--; - - // Set max to be on first next view (the one that is going to stop the loop) - if (maxM%2 == 0) { - if (maxM == 12) { - maxM = 1; maxY++; - } - else maxM++; - } - else { - maxM +=2; - if (maxM == 13) { - maxM = 1; maxY++; - } - } - - - if (!data.options.categories) { - html += - '
    \n'+ - '
    \n'; - for (var x in nodes) { - html += nodes[x]; - } - html += '
    \n'+ - '
    '; - } - else { - var firstMonth = true; - // Generate months and place nodes - while ((minY != maxY && !isNaN(minY) && !isNaN(maxY)) || minM != maxM) { - var nodes1 = new Array(); - var nodes1length = 0; - - for (x in nodes) { - var dataArray = x.split('/'); - m = ($.inArray(dataArray[1],months) != -1) ? $.inArray(dataArray[1],months) : parseInt(dataArray[1],10); - if(!data.options.yearsOn) y = minY; - else y = parseInt(dataArray[2],10); - if (m == minM && (y == minY || !data.options.yearsOn)){ - nodes1[x]= nodes[x]; - nodes1length++; - nodes.splice(x,1); - } - - } - if (nodes1length != 0) { - if (firstMonth) { - firstMonth = !firstMonth; - html += - '
    \n'+ - '
    \n'+ - '

    '+months[minM]+(data.options.yearsOn ? ' '+(minY < 0 ? (-minY)+' B.C.' : minY)+'' : '' )+'

    \n'; - - // Fill with nodes - for (x in nodes1) { - if(typeof nodes1[x] == 'string') { - html+= nodes1[x]; - } - } - html += - '
    \n'; - } - else { - firstMonth = !firstMonth; - html += - '
    \n'+ - '

    '+(typeof months[minM] !== 'undefined' ? months[minM] : '')+(data.options.yearsOn ? ' '+minY+'' : '' )+'

    \n'; - - // Fill with nodes - for (x in nodes1) { - if(typeof nodes1[x] == 'string') { - html+= nodes1[x]; - } - } - html += - '
    \n'+ - '
    \n'+ - '
    '; - cnt++; - - } - - - } - - if (minM == months.length-1) { minM = 1; minY++;} - else { minM++; } - - - if(minM == maxM && !data.options.yearsOn) break; - - - - } - if (!firstMonth) { - html += - '
    \n'+ - '

    '+(typeof months[minM] !== 'undefined' ? months[minM] : '')+(data.options.yearsOn ? ' '+minY+'' : '' )+'

    \n'+ - '
    \n'+ - '
    \n'+ - '
    '; - cnt++; - } - - } - } - - - html += '\n' + -'
    \n'+ -'
    \n'+ -'
    \n'; - - // Set number of View elements - data.lineViewCount = cnt; - // Add generated html and set width & margin for dinamic timeline - $this.find('.timeline_line').html(html); - $this.find('.t_line_node').each(function(){ - var $thisNode = $(this); - $(this).find('span').hide(); - $(this).hover(function(){ - $items.each(function(){ - if($(this).attr('data-id') == $thisNode.attr('href').substr(1)) { - $(this).addClass('item_node_hover'); - } - }); - $(this).find('span').show(); - }, function(){ - $(this).find('span').hide(); - $('.item_node_hover').removeClass('item_node_hover'); - }); - - //Position lineView to selected item - if($(this).hasClass('active')) { - data.lineMargin = -parseInt($(this).parent().parent('.t_line_view').attr('data-id'),10)*100; - $this.find('.t_line_wrapper').css('margin-left', data.lineMargin+'%'); - } - // Bind goTo function to click event - $(this).click(function(e){ - e.preventDefault(); - $this.find('.t_line_node').removeClass('active'); - $(this).addClass('active'); - $this.timeline('goTo', $(this).attr('href').substr(1)); - }); - }); - - $this.find('#t_line_left').click(function(){ - $this.timeline('lineLeft'); - }); - - $this.find('#t_line_right').click(function(){ - $this.timeline('lineRight'); - }); - - } - }; - - // Initiate methods - $.fn.timeline = function( method ) { - - if ( t_methods[method] ) { - return t_methods[method].apply( this, Array.prototype.slice.call( arguments, 1 )); - } else if ( typeof method === 'object' || ! method ) { - return t_methods.init.apply( this, arguments ); - } else { - $.error( 'Method ' + method + ' does not exist on jQuery.timeline' ); - } - - }; - - - - - -})(jQuery); \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/js/frontend/jquery.timeline.min.js --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/js/frontend/jquery.timeline.min.js Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ -/* - -Timeline 1.0 - -Date organised content slider. - -Copyright (c) 2012 br0 (shindiristudio.com) - -Project site: http://codecanyon.net/ -Project demo: http://shindiristudio.com/timeline - -*/ - -(function($){var t_methods={init:function(options){var settings=$.extend({'itemClass':'.item','itemOpenClass':'.item_open','openTriggerClass':'.item','closeText':'Close','itemMargin':10,'scrollSpeed':500,'startItem':'last','easing':'easeOutSine','categories':['January','February','March','April','May','June','July','August','September','October','November','December'],'nuberOfSegments':[31,29,31,30,31,30,31,31,30,31,30,31],'yearsOn':true},options);var $this=this,$body=$('body'),$items=$this.find(settings.itemClass),$itemsOpen=$this.find(settings.itemOpenClass),itemWidth=$items.first().width(),itemOpenWidth=$itemsOpen.first().width();$this.trigger('init.Timeline');var startIndex=$items.length-1;if(settings.startItem=='first'){startIndex=0}else if(settings.startItem=='last'){startIndex=$items.length-1}else{$items.each(function(index){if(settings.startItem==$(this).attr('data-id')){startIndex=index;return true}})}$this.append('
    ');$this.css({width:'100%','overflow':'hidden',marginLeft:'auto',marginRight:'auto','text-align':'center',height:0});$this.wrapInner('
    ');$this.find('.timeline_items').css('text-align','left');$this.append('
    ');$this.wrapInner('
    ');$this.find('.timeline_items_holder').css({width:'300px',marginLeft:'auto',marginRight:'auto'});$items.css({paddingLeft:0,paddingRight:0,marginLeft:settings.itemMargin/2,marginRight:settings.itemMargin/2,float:'left',position:'relative'});$itemsOpen.each(function(){$(this).prepend('
    '+settings.closeText+'
    ');$(this).wrapInner('
    ').find('div:first').css({position:'relative'});$(this).css({width:0,padding:0,margin:0,float:'left',display:'none',position:'relative',overflow:'hidden'})});var $iholder=$this.find('.timeline_items:first'),$line=$this.find('.t_line_wrapper:first'),margin=300/2-(itemWidth+settings.itemMargin)*(1/2+startIndex),width=(itemWidth+settings.itemMargin)*$items.length+(itemOpenWidth+settings.itemMargin)+660,data=$this.data('timeline');$iholder.css({width:width,marginLeft:margin});if(!data){$this.data('timeline',{currentIndex:startIndex,itemCount:$items.length,margin:margin,itemWidth:itemWidth,itemOpenWidth:itemOpenWidth,lineMargin:0,lineViewCount:0,options:settings,items:$items,iholder:$iholder,open:false,noAnimation:false,marginResponse:false})}$this.timeline('createElements');$(document).keydown(function(e){if(e.keyCode==37){$this.timeline('left');return false}if(e.keyCode==39){$this.timeline('right');return false}});$(window).resize(function(){var id=$this.find('.active:first').attr('href').substr(1);data=$this.data('timeline');itemWidth=$items.first().width(),itemOpenWidth=$itemsOpen.first().find('div:first').width();data.margin+=data.itemCount*(data.itemWidth-itemWidth);data.itemWidth=itemWidth;if(data.open)data.margin+=(data.itemOpenWidth-itemOpenWidth)/2;data.itemOpenWidth=itemOpenWidth;if($this.find('.t_line_view:first').width()>$this.find('.timeline_line').width()&&data.open&&!data.marginResponse){data.margin-=(itemWidth+settings.itemMargin)/2;data.marginResponse=true}else if($this.find('.t_line_view:first').width()<=$this.find('.timeline_line').width()&&data.marginResponse&&data.open){data.margin+=(itemWidth+settings.itemMargin)/2;data.marginResponse=false}data.noAnimation=true;$this.timeline('goTo',id)});$this.find('.t_left').click(function(){$this.timeline('left')});$this.find('.t_right').click(function(){$this.timeline('right')});$this.find(settings.openTriggerClass).click(function(){$this.timeline('goTo',$(this).attr('data-id'),true)});$this.find('.t_close').click(function(){$this.timeline('close',$(this).attr('data-id'))});$this.css({height:'auto'}).show();$this.find('.t_line_node').each(function(){if($(this).width()<10)$(this).width(12);$(this).css({marginLeft:-$(this).width()/2})});return $this},destroy:function(){var $this=this,data=$this.data('timeline');data.currentIndex.remove();data.itemCount.remove();data.margin.remove();data.lineMargin.remove();data.lineViewCount.remove();data.options.remove();data.items.remove();data.iholder.remove();data.open.remove();$this.removeData('timeline')},open:function(id){var $this=this,data=$this.data('timeline'),$items=$this.find(data.options.itemOpenClass),speed=data.options.scrollSpeed,width=data.itemOpenWidth,easing=data.options.easin,itemMargin=data.options.itemMargin;$items.each(function(){if($(this).attr('data-id')==id){$this.trigger('itemOpen.Timeline');$(this).stop(true).show().animate({width:width,marginLeft:itemMargin/2,marginRight:itemMargin/2,},speed,easing);if($this.find('.t_line_view:first').width()>$this.find('.timeline_line').width()){data.margin-=(data.itemWidth+data.options.itemMargin)/2;data.marginResponse=true}else{data.marginResponse=false}data.margin-=(width+data.options.itemMargin+data.itemWidth)/2-data.itemWidth/2;data.iholder.stop(true).animate({marginLeft:data.margin},speed,easing);data.open=id}});return $this},close:function(id,idOpen){var $this=this,data=$this.data('timeline'),$items=$this.find(data.options.itemOpenClass),speed=data.options.scrollSpeed,width=data.itemOpenWidth,easing=data.options.easing;$items.each(function(){if($(this).attr('data-id')==id){$this.trigger('itemClose.Timeline');$(this).stop(true).animate({width:0,margin:0},speed,easing,function(){$(this).hide()});if(data.marginResponse){data.margin+=(data.itemWidth+data.options.itemMargin)/2}data.margin+=(width+data.options.itemMargin)/2;data.iholder.stop(true).animate({marginLeft:data.margin},speed,easing);data.open=false}});if(idOpen){$this.timeline('open',idOpen)}return $this},right:function(){var $this=this,data=$this.data('timeline'),speed=data.options.scrollSpeed,easing=data.options.easing;if(data.currentIndex0){var dataId=data.items.eq(data.currentIndex-1).attr('data-id');$this.timeline('goTo',dataId)}else{data.iholder.stop(true).animate({marginLeft:data.margin+50},speed/2,easing).animate({marginLeft:data.margin},speed/2,easing)}return $this},goTo:function(id,openElement){var $this=this,data=$this.data('timeline'),speed=data.options.scrollSpeed,easing=data.options.easing,$items=data.items,timelineWidth=$this.find('.timeline_line').width(),count=-1,found=false;$items.each(function(index){if(id==$(this).attr('data-id')){found=true;count=index;return true}});if(found){var $nodes=$this.find('.t_line_node');$nodes.removeClass('active');var $goToNode=$nodes.parent().parent().find('[href="#'+id+'"]').addClass('active');data.lineMargin=-parseInt($goToNode.parent().parent().attr('data-id'),10)*100;if($this.find('.t_line_view:first').width()>$this.find('.timeline_line').width()){data.lineMargin*=2;if($goToNode.parent().hasClass('right'))data.lineMargin-=100}if(data.noAnimation){data.noAnimation=false;$this.find('.t_line_wrapper').stop(true).css({marginLeft:data.lineMargin+'%'})}else{$this.find('.t_line_wrapper').stop(true).animate({marginLeft:data.lineMargin+'%'},speed,easing)}if(data.open){$this.timeline('close',data.open,id)}else if(openElement){$this.timeline('open',id)}$this.trigger('scrollStart.Timeline');var multiply=data.currentIndex-count;data.currentIndex=count;data.margin+=(data.itemWidth+data.options.itemMargin)*multiply;data.iholder.stop(true).animate({marginLeft:data.margin},speed+(speed/5)*(Math.abs(multiply)-1),easing,function(){$this.trigger('scrollStop.Timeline')})}return $this},lineLeft:function(){var $this=this,data=$this.data('timeline'),speed=data.options.scrollSpeed,easing=data.options.easing;if(data.lineMargin!=0){data.lineMargin+=100;$this.find('.t_line_wrapper').stop(true).animate({marginLeft:data.lineMargin+'%'},speed,easing)}},lineRight:function(){var $this=this,data=$this.data('timeline'),speed=data.options.scrollSpeed,easing=data.options.easing;if($this.find('.t_line_view:first').width()>$this.find('.timeline_line').width())var viewCount=data.lineViewCount*2;else var viewCount=data.lineViewCount;if(data.lineMargin!=-(viewCount-1)*100){data.lineMargin-=100;$this.find('.t_line_wrapper').stop(true).animate({marginLeft:data.lineMargin+'%'},speed,easing)}},createElements:function(){var $this=this,data=$this.data('timeline'),$items=data.items;var html='\n'+'
    \n'+'
    \n';$this.prepend(html);var timelineWidth=$this.find('.timeline_line').width(),cnt=0,nodes=new Array(),months=[''].concat(data.options.categories);monthsDays=[0].concat(data.options.nuberOfSegments),minM=months.length,minY=99999,maxM=0,maxY=0;if(!data.options.yearsOn)maxY=99999;$items.each(function(){var dataId=$(this).attr('data-id'),dataDesc=$(this).attr('data-description'),dataArray=dataId.split('/'),d=parseInt(dataArray[0],10),m=(months.indexOf(dataArray[1])!=-1)?months.indexOf(dataArray[1]):parseInt(dataArray[1],10),y=parseInt(dataArray[2],10);maxY=Math.max(maxY,y);maxM=Math.max(maxM,m);minY=Math.min(minY,y);minM=Math.min(minM,m);nodes[dataId]=''+d;if(typeof dataDesc!='undefined')nodes[dataId]+=''+dataDesc+'';nodes[dataId]+='\n';cnt++});html='\n'+'
    \n'+'
    \n'+'
    \n';cnt=0;if(maxM>0){if(minM%2==0)minM--;if(maxM%2==0){if(maxM==12){maxM=1;maxY++}else maxM++}else{maxM+=2}while(minY!=maxY||minM!=maxM){html+='
    \n'+(data.options.yearsOn?'

    '+minY+'

    \n':'')+'
    \n'+'

    '+months[minM]+(data.options.yearsOn?' '+minY+'':'')+'

    \n';for(var x in nodes){var dataArray=x.split('/');m=(months.indexOf(dataArray[1])!=-1)?months.indexOf(dataArray[1]):parseInt(dataArray[1],10);if(!data.options.yearsOn)y=minY;else y=parseInt(dataArray[2],10);if(m==minM&&y==minY){html+=nodes[x];nodes.splice(x,1)}}minM++;html+='
    \n'+'
    \n'+'

    '+months[minM]+(data.options.yearsOn?' '+minY+'':'')+'

    \n';for(var x in nodes){dataArray=x.split('/');m=(months.indexOf(dataArray[1])!=-1)?months.indexOf(dataArray[1]):parseInt(dataArray[1],10);if(!data.options.yearsOn)y=minY;else y=parseInt(dataArray[2],10);if(m==minM&&y==minY){html+=nodes[x];nodes.splice(x,1)}}html+='
    \n'+'
    \n'+'
    ';if(minM==months.length-1){minM=1;minY++}else{minM++}cnt++}}html+='\n'+'
    \n'+'
    \n'+'
    \n';data.lineViewCount=cnt;$this.find('.timeline_line').html(html);$this.find('.t_line_node').each(function(){$(this).find('span').hide();$(this).hover(function(){$(this).find('span').show()},function(){$(this).find('span').hide()});if($(this).hasClass('active')){data.lineMargin=-parseInt($(this).parent().parent('.t_line_view').attr('data-id'),10)*100;$this.find('.t_line_wrapper').css('margin-left',data.lineMargin+'%')}$(this).click(function(e){e.preventDefault();$this.find('.t_line_node').removeClass('active');$(this).addClass('active');$this.timeline('goTo',$(this).attr('href').substr(1))})});$this.find('#t_line_left').click(function(){$this.timeline('lineLeft')});$this.find('#t_line_right').click(function(){$this.timeline('lineRight')})}};$.fn.timeline=function(method){if(t_methods[method]){return t_methods[method].apply(this,Array.prototype.slice.call(arguments,1))}else if(typeof method==='object'||!method){return t_methods.init.apply(this,arguments)}else{$.error('Method '+method+' does not exist on jQuery.timeline')}}})(jQuery);if(!Array.prototype.indexOf){Array.prototype.indexOf=function(obj,start){for(var i=(start||0),j=this.length;i
    '); - - - switch (type) - { - case 'top' : lstart='0'; lend='0'; tstart='-100%'; tend='0'; break; - case 'right' : lstart='100%'; lend='0'; tstart='0'; tend='0'; break; - case 'bottom' : lstart='0'; lend='0'; tstart='100%'; tend='0'; break; - case 'left' : lstart='-100%'; lend='0'; tstart='0'; tend='0'; break; - } - $(this).find('.image_roll_zoom').css({left:lstart, top:tstart}); - $(this).hover(function(){ - $(this).find('.image_roll_zoom').stop(true, true).animate({left: lend, top:tend},200); - $(this).find('.image_roll_glass').stop(true, true).fadeIn(200); -},function() { - $(this).find('.image_roll_zoom').stop(true).animate({left:lstart, top:tstart},200); - $(this).find('.image_roll_glass').stop(true, true).fadeOut(200); - }); - -} - -})(jQuery); \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/pages/backup/content_timeline_frontend.php --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/pages/backup/content_timeline_frontend.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,346 +0,0 @@ - '500', - 'easing' => 'easeOutSine', - 'hide-years' => false, - 'cat-type' => 'months', - 'number-of-posts' => '30', - - // style - 'line-width' => '920', - 'item-width' => '240', - 'item-open-width' => '490', - 'item-margin' => '20', - 'item-height' => '360', - 'read-more' => 'button', - 'close-text' => 'Close', - 'hide-line' => false, - 'line-style' => 'light', - 'hide-nav' => false, - 'nav-style' => 'light', - 'shdow' => 'show', - 'item-back-color' => '#ffffff', - 'item-background' => '', - 'item-open-back-color' => '#ffffff', - 'item-open-background' => '', - - 'button-hover-color' => '#1986ac', - 'item-image-height' => '150', - 'item-image-border-width' => '5', - 'item-image-border-color' => '#1986ac', - 'item-open-image-height' => '150', - 'item-open-content-padding' => '10', - 'item-open-image-border-width' => '5', - 'item-open-image-border-color' => '#1986ac' - -); -global $wpdb; -if($id) { - global $wpdb; - $timeline = $wpdb->get_results('SELECT * FROM ' . $wpdb->base_prefix . 'ctimelines WHERE id='.$id); - $timeline = $timeline[0]; -} -$title = $timeline->name; -$cats = "["; -$catArray = array(); -$ccNumbers = array(); -$catNumber = 0; - -foreach(explode('||',$timeline->settings) as $val) { - $expl = explode('::',$val); - if(substr($expl[0], 0, 8) == 'cat-name') { - if($cats != "[") $cats .= ","; - $cc = get_cat_name(intval(substr($expl[0], 9))); - $cats .= "'".$cc."'"; - array_push ($catArray,$cc); - array_push ($ccNumbers, 0); - $catNumber++; - } - else { - $settings[$expl[0]] = $expl[1]; - } - -} -$cats .= "]"; - -$frontHtml = ' - -'; - -if($settings['read-more'] == 'whole-item') { - $read_more = "'.item'"; - $swipeOn = 'false'; -} -else if ($settings['read-more'] == 'button') { - $read_more = "'.read_more'"; - $swipeOn = 'true'; -} -else { - $read_more = "'none'"; - $swipeOn = 'true'; -} - -if($settings['cat-type'] == 'categories') { - $cats = ', - categories : '.$cats . ', - numberOfSegments : ['; - $cats .= $settings['number-of-posts']; - for ($i = 1; $i < $catNumber; $i++) { - $cats .= ', '. $settings['number-of-posts']; - } - $cats .= ']'; -} -else { - $cats = ''; -} - -$frontHtml .=' - - -
    '; - -if ($timeline->items != '') { - $explode = explode('||',$timeline->items); - $open_content_height = intval($settings['item-height']) - intval($settings['item-open-image-height']) - 2*intval($settings['item-open-content-padding']) -intval($settings['item-open-image-border-width']) - 6; - - $itemsArray = array(); - foreach ($explode as $it) { - $ex2 = explode('::', $it); - $key = substr($ex2[0],0,strpos($ex2[0],'-')); - $subkey = substr($ex2[0],strpos($ex2[0],'-')+1); - $itemsArray[$key][$subkey] = $ex2[1]; - } - foreach ($itemsArray as $key => $arr) { - $num = substr($key,4); - - if($settings['cat-type'] == 'categories') { - $index = array_search($arr['categoryid'],$catArray); - $ccNumbers[$index]++; - $arr['dataid'] = ($ccNumbers[$index] < 10 ? '0'.$ccNumbers[$index] : $ccNumbers[$index]).'/'.$arr['categoryid']; - } - if($arr['start-item']) { - $start_item = $arr['dataid']; - - } - - - -$frontHtml .=' - -
    - -

    '.$arr['item-title'].'

    - '.$arr['item-content'].' - '.(($settings['read-more'] == 'button') ? '
    Read more
    ' : '').' -
    -
    '; - - if ($arr['item-open-image'] != '') { - $frontHtml .= ' - -
    '; - - } - else { - $frontHtml .= ' -
    '; - } - - if ($arr['item-open-title'] != '') { - $frontHtml .= ' -

    '.$arr['item-open-title'].'

    '; - - } - $frontHtml .= ' - ' . $arr['item-open-content'].' -
    -
    '; - - - } -} -$frontHtml .= ' -
    - - - - - - - -'; -?> diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/pages/content_timeline_ajax_page.php --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/pages/content_timeline_ajax_page.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ - \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/pages/content_timeline_edit.php --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/pages/content_timeline_edit.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,880 +0,0 @@ -
    - '500', - 'easing' => 'easeOutSine', - 'hide-years' => false, - 'cat-type' => 'months', - 'number-of-posts' => '30', - - // style - 'line-width' => '920', - 'item-width' => '240', - 'item-open-width' => '490', - 'item-margin' => '20', - 'item-height' => '360', - 'read-more' => 'button', - 'close-text' => 'Close', - 'hide-line' => false, - 'line-style' => 'light', - 'hide-nav' => false, - 'nav-style' => 'light', - 'shdow' => 'show', - 'button-hover-color' => '#1986ac', - 'node-desc-color' => '#1986ac', - - // item & open item - 'item-back-color' => '#ffffff', - 'item-background' => '', - 'item-open-back-color' => '#ffffff', - 'item-open-background' => '', - 'item-image-height' => '150', - 'item-image-border-width' => '5', - 'item-image-border-color' => '#1986ac', - 'item-open-image-height' => '150', - 'item-open-content-padding' => '10', - 'item-open-image-border-width' => '5', - 'item-open-image-border-color' => '#1986ac', - - // item fonts - 'item-header-line-height' => '24', - 'item-header-font-size' => '24', - 'item-header-font-type' => 'regular', - 'item-header-font-color' => '#2d2d2d', - 'item-text-line-height' => '12', - 'item-text-font-size' => '12', - 'item-text-font-type' => 'regular', - 'item-text-font-color' => '#4d4d4d', - - // item open fonts - 'item-open-header-line-height' => '24', - 'item-open-header-font-size' => '24', - 'item-open-header-font-type' => 'regular', - 'item-open-header-font-color' => '#2d2d2d', - 'item-open-text-line-height' => '12', - 'item-open-text-font-size' => '12', - 'item-open-text-font-type' => 'regular', - 'item-open-text-font-color' => '#4d4d4d' - - - ); - global $wpdb; - if(isset($_GET['id'])) { - global $wpdb; - $timeline = $wpdb->get_results('SELECT * FROM ' . $wpdb->base_prefix . 'ctimelines WHERE id='.$_GET['id']); - $timeline = $timeline[0]; - $pageName = 'Edit timeline'; - } - else { - $pageName = 'New timeline'; - } - $title = $timeline->name; - foreach(explode('||',$timeline->settings) as $val) { - $expl = explode('::',$val); - $settings[$expl[0]] = $expl[1]; - } - ?> - - - -

    - " class="add-new-h2">Cancel -

    -
    -
    - -
    - -
    - -
    -
    -
    - - -
    -
    -

    Items

    - + Add New item -
    -
      - items != '') { - $explode = explode('||',$timeline->items); - $itemsArray = array(); - foreach ($explode as $it) { - $ex2 = explode('::', $it); - $key = substr($ex2[0],0,strpos($ex2[0],'-')); - $subkey = substr($ex2[0],strpos($ex2[0],'-')+1); - $itemsArray[$key][$subkey] = $ex2[1]; - } - foreach ($itemsArray as $key => $arr) { - $num = substr($key,4); - ?> - - -
    • -
      +
      -
      Item -  delete
      -
      -
      - /> - - ? Argument by which are elements organised (date - dd/mm/yyyy, Category - full category name). Different field is used for different categorizing type. - - - - - - - -
      -
      -

      ? Base item content (image, title and content).Item Options

      -
      Change - - - Remove -
      - -
      - -
    - - - - - -
    ? "PrittyPhoto"(Lightbox) URL, it can be image, video or site url. LEAVE IT EMPTY TO DESPLAY FULL SIZED IMGAE.
    - - -
    -

    ? Opened item content (image, title and content).Item Open Options

    -
    Change - - Remove -
    - -
    - - - - - - - -
    ? "PrettyPhoto"(Lightbox) URL, it can be image, video or site url. LEAVE IT EMPTY TO DESPLAY FULL SIZED IMGAE.
    - - /> -
    - - - - - - -
    - -
    - - -
    - - - -
    -
    -

    Publish

    -
    -
    - - - -
    -
    -
    -
    - - -
    -

    -

    General Options

    -
    - - - - - - - - - - - - - - - - -
    - ? Transition speed (default 500px). - - - - ms -
    - ? Transition easing function (default 'easeOutSine'). - - - -
    -
    -

    ? Options for categorizing your posts.Chronological Options

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - - /> -
    - ? Organize posts by date or some other criteria. - - - - - -
    - ? Number of posts per category/month (default 30). - - - -
    -

    Categories:

    - $post_type)); - foreach ($newCats as $post_cat) { - if (!in_array($post_cat, $categories)) { - array_push($categories, $post_cat); - } - } - } - } - $catString = ''; - foreach ($categories as $category) { - $catString .= $category->name . '||'; - echo ' - - term_id]) ? 'checked="checked"' : '').'>'; - } - if($catString != '') { - echo ''; - } - - ?> - -
    - Chech all - Unchech all -
    -
    -
    -
    -
    - - - - - - -
    -

    -

    Global Styling Options

    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - ? Width of the line element (default 920px). - - - - px -
    - ? Space between two items. If negative items overlap. (default 20px). - - - - px -
    - ? Height of Item and Open item elements (default 360px). - - - - px -
    - ? Read more button ('Button' : adds read more button, 'Whole Item' : makes the entire item clickable, 'None' : Items don't open). - - - -
    - ? Text of the 'Close' element in open item (default 'Close'). - - - -
    - ? Hover color of 'Read More' and 'Close' buttons. - - - -
    -
    -
    -
    - ? Color of description bar that appears when you hover date on the timeline. - - - -
    -
    -
    -
    - - - > -
    - ? Color scheme of timeline element (default 'Light'). - - - -
    - - - > -
    - ? Color scheme of nav elements (default 'Light'). - - - -
    - ? Shadow under elements (default 'show'). - - - -
    -
    -
    - - - - - - -
    -

    -

    Item Styling Options

    -
    - - - - - - - - - - - - - - - - - - - - - -
    - ? Width of items (default 240px). - - - - px -
    - ? Height of images (Width is strached to element width). - - - - px -
    - - - - px -
    - - - -
    -
    -
    -
    -
    -

    ? Font-family is inharited from your theme default fonts for H2 and default text.Fonts

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - px -
    - - - - px -
    - - - - -
    - - - -
    -
    -
    -
    - - - - px -
    - - - - px -
    - - - - -
    - - - -
    -
    -
    -
    -
    - - -
    -

    ? Base item background options.Background

    - - - -
    -
    -
    - - -
    - - - Click on image to change, or remove image -
    -
    - -
    -
    - - -
    -

    -

    Styling Options

    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - ? Width of open items (default 490px). - - - - px -
    - ? Padding of open items content. - - - - px -
    - ? Height of images (Width is strached to element width). - - - - px -
    - - - - px -
    - - - -
    -
    -
    -
    -
    -

    ? Font-family is inharited from your theme default fonts for H2 and default text.Fonts

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - px -
    - - - - px -
    - - - - -
    - - - -
    -
    -
    -
    - - - - px -
    - - - - px -
    - - - - -
    - - - -
    -
    -
    -
    -
    -
    -

    ? Open item background options.Background

    - - - -
    -
    -
    - - -
    - - - Click on image to change, or remove image -
    -
    -
    -
    - - - - - -
    -
    - -
    -
    -
    - -
    - - - - - - - \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/pages/content_timeline_frontend.php --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/pages/content_timeline_frontend.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,77 +0,0 @@ -path . '/pages/default_settings.php'); - - -global $wpdb; -if($id) { - global $wpdb; - $timeline = $wpdb->get_results('SELECT * FROM ' . $wpdb->base_prefix . 'ctimelines WHERE id='.$id); - $timeline = $timeline[0]; -} -$title = $timeline->name; -$cats = "["; -$catArray = array(); -$ccNumbers = array(); -$catNumber = 0; - -foreach(explode('||',$timeline->settings) as $val) { - $expl = explode('::',$val); - if(substr($expl[0], 0, 8) == 'cat-name') { - if($cats != "[") $cats .= ","; - $cc = get_cat_name(intval(substr($expl[0], 9))); - $cats .= "'".$cc."'"; - array_push ($catArray,$cc); - array_push ($ccNumbers, 0); - $catNumber++; - } - else { - $settings[$expl[0]] = $expl[1]; - } - -} -$cats .= "]"; - - -if($settings['read-more'] == 'whole-item') { - $read_more = "'.item'"; - $swipeOn = 'false'; -} -else if ($settings['read-more'] == 'button') { - $read_more = "'.read_more'"; - $swipeOn = 'true'; -} -else { - $read_more = "'none'"; - $swipeOn = 'true'; -} - -if($settings['cat-type'] == 'categories') { - $cats = ', - categories : '.$cats . ', - numberOfSegments : ['; - $cats .= $settings['number-of-posts']; - for ($i = 1; $i < $catNumber; $i++) { - $cats .= ', '. $settings['number-of-posts']; - } - $cats .= ']'; -} -else { - $cats = ''; -} -if ($timeline->items != '') { - $explode = explode('||',$timeline->items); - $open_content_height = intval($settings['item-height']) - intval($settings['item-open-image-height']) - 2*intval($settings['item-open-content-padding']) -intval($settings['item-open-image-border-width']) - 6; - - $itemsArray = array(); - foreach ($explode as $it) { - $ex2 = explode('::', $it); - $key = substr($ex2[0],0,strpos($ex2[0],'-')); - $subkey = substr($ex2[0],strpos($ex2[0],'-')+1); - $itemsArray[$key][$subkey] = $ex2[1]; - } -} - - -include_once($this->path . '/pages/front_html.php'); -include_once($this->path . '/pages/front_script.php'); -?> \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/pages/content_timeline_index.php --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/pages/content_timeline_index.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,76 +0,0 @@ -
    -

    Timelines - " class="add-new-h2">Add New -

    - - - - - - - - - - - - - - - - - - - - - - - - base_prefix; - - if($_GET['action'] == 'delete') { - $wpdb->query('DELETE FROM '. $prefix . 'ctimelines WHERE id = '.$_GET['id']); - } - $timelines = $wpdb->get_results("SELECT * FROM " . $prefix . "ctimelines ORDER BY id"); - if (count($timelines) == 0) { - echo ''. - ''. - ''; - } else { - $tname; - foreach ($timelines as $timeline) { - $tname = $timeline->name; - if(!$tname) { - $tname = 'Timeline #' . $timeline->id . ' (untitled)'; - } - echo ''. - ''. - ''. - '' . - ''. - ''; - } - } - ?> - - -
    IDNameShortcodeActions
    IDNameShortcodeActions
    No timelines found.
    ' . $timeline->id . '' . ''.$tname.'' . ' [content_timeline id="' . $timeline->id . '"]' . 'Edit | '. - 'Delete'. - '
    -
    - -

    Step by step:

    -
      -
    • 1. Click on "Add New button"

    • -
    • 2. Setup your timeline, and click Save

    • -
    • 3. Copy "shortcode" from table and use it in your post or page. (for adding timeline into .php parts of template use it like this "<?php do_shortcode([content_timeline id="X"]) ?>" where X is id of your timeline)

    • - -
    -
    -
    - \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/pages/content_timeline_preview.php --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/pages/content_timeline_preview.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,289 +0,0 @@ -path . '/pages/default_settings.php'); - -$title = $tname; -$catArray = array(); -$ccNumbers = array(); -foreach(explode('||',$tsettings) as $val) { - $expl = explode('::',$val); - $settings[$expl[0]] = $expl[1]; - if(substr($expl[0], 0, 8) == 'cat-name') { - $cc = get_cat_name(intval(substr($expl[0], 9))); - array_push ($catArray,$cc); - array_push ($ccNumbers, 0); - } -} -?> - - - - - - -
    - - $arr) { - $num = substr($key,4); - if($settings['cat-type'] == 'categories') { - $index = array_search($arr['categoryid'],$catArray); - $ccNumbers[$index]++; - $arr['dataid'] = ($ccNumbers[$index] < 10 ? '0'.$ccNumbers[$index] : $ccNumbers[$index]).'/'.$arr['categoryid']; - } - if($arr['start-item']) { - $start_item = $arr['dataid']; - - } - ?> - - - - -
    data-description=""> - - - -

    - - Read more
    '; } ?> -
    -
    - - - -
    - - -
    - - -

    - -
    -
    - -
    - - - diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/pages/default_settings.php --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/pages/default_settings.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,61 +0,0 @@ - '500', - 'easing' => 'easeOutSine', - 'hide-years' => false, - 'cat-type' => 'months', - 'number-of-posts' => '30', - - // style - 'line-width' => '920', - 'item-width' => '240', - 'item-open-width' => '490', - 'item-margin' => '20', - 'item-height' => '360', - 'read-more' => 'button', - 'close-text' => 'Close', - 'hide-line' => false, - 'line-style' => 'light', - 'hide-nav' => false, - 'nav-style' => 'light', - 'shdow' => 'show', - 'button-hover-color' => '#1986ac', - 'node-desc-color' => '#1986ac', - - // item & open item - 'item-back-color' => '#ffffff', - 'item-background' => '', - 'item-open-back-color' => '#ffffff', - 'item-open-background' => '', - 'item-image-height' => '150', - 'item-image-border-width' => '5', - 'item-image-border-color' => '#1986ac', - 'item-open-image-height' => '150', - 'item-open-content-padding' => '10', - 'item-open-image-border-width' => '5', - 'item-open-image-border-color' => '#1986ac', - - // item fonts - 'item-header-line-height' => '24', - 'item-header-font-size' => '24', - 'item-header-font-type' => 'regular', - 'item-header-font-color' => '#2d2d2d', - 'item-text-line-height' => '12', - 'item-text-font-size' => '12', - 'item-text-font-type' => 'regular', - 'item-text-font-color' => '#4d4d4d', - - // item open fonts - 'item-open-header-line-height' => '24', - 'item-open-header-font-size' => '24', - 'item-open-header-font-type' => 'regular', - 'item-open-header-font-color' => '#2d2d2d', - 'item-open-text-line-height' => '12', - 'item-open-text-font-size' => '12', - 'item-open-text-font-type' => 'regular', - 'item-open-text-font-color' => '#4d4d4d' - -); -?> \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/pages/front_html.php --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/pages/front_html.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,320 +0,0 @@ - -#tl'. $id. ' .timeline_line, -#content #tl'. $id. ' .timeline_line{ - width: '.$settings['line-width'].'px; -} - -#tl'.$id.' .t_line_view, -#content #tl'.$id.' .t_line_view { - width: '.$settings['line-width'].'px; -} - -#tl'.$id.' .t_line_m, -#content #tl'.$id.' .t_line_m { - width: '. (((int)$settings['line-width'])/2-2).'px; -} - -#tl'. $id.' .t_line_m.right, -#content #tl'. $id.' .t_line_m.right { - left: '. (((int)$settings['line-width'])/2-1).'px; - width: '. (((int)$settings['line-width'])/2-1).'px; -} - -#tl'. $id.' .t_node_desc, -#content #tl'. $id.' .t_node_desc { - background: '.$settings['node-desc-color'].'; -} - - -#tl'. $id.' .item h2, -#content #tl'. $id.' .item h2 { - font-size:'.$settings['item-header-font-size'].'px; - color:'.$settings['item-header-font-color'].'; - line-height:'.$settings['item-header-line-height'].'px;'; - -switch($settings['item-header-font-type']) { - case 'regular' : $frontHtml .= ' - font-weight:normal; - font-style:normal;'; break; - - case 'thick' : $frontHtml .= ' - font-weight:100; - font-style:normal;'; break; - - case 'bold' : $frontHtml .= ' - font-weight:bold; - font-style:normal;'; break; - - case 'bold-italic' : $frontHtml .= ' - font-weight:bold; - font-style:italic;'; break; - - case 'italic' : $frontHtml .= ' - font-weight:normal; - font-style:italic;'; break; -} -$frontHtml .= ' -} - -#tl'. $id.' .item, -#content #tl'. $id.' .item { - width: '. $settings['item-width'].'px; - height: '. $settings['item-height'].'px; - background:'. $settings['item-back-color'].' url('. $settings['item-background'].') repeat; - font-size:'.$settings['item-text-font-size'].'px; - color:'.$settings['item-text-font-color'].'; - line-height:'.$settings['item-text-line-height'].'px;'; - - -switch($settings['item-text-font-type']) { - case 'regular' : $frontHtml .= ' - font-weight:normal; - font-style:normal;'; break; - - case 'thick' : $frontHtml .= ' - font-weight:100; - font-style:normal;'; break; - - case 'bold' : $frontHtml .= ' - font-weight:bold; - font-style:normal;'; break; - - case 'bold-italic' : $frontHtml .= ' - font-weight:bold; - font-style:italic;'; break; - - case 'italic' : $frontHtml .= ' - font-weight:normal; - font-style:italic;'; break; -} - - -if($settings['shadow'] == 'show') { - $frontHtml.= ' - -moz-box-shadow: 0px 0px 6px rgba(0,0,0,0.5); - -webkit-box-shadow: 0px 0px 6px rgba(0,0,0,0.5); - box-shadow: 0px 0px 6px rgba(0,0,0,0.5); - - zoom: 1; - filter: progid:DXImageTransform.Microsoft.Shadow(Color=#888888, Strength=0, Direction=0), - progid:DXImageTransform.Microsoft.Shadow(Color=#888888, Strength=5, Direction=90), - progid:DXImageTransform.Microsoft.Shadow(Color=#888888, Strength=5, Direction=180), - progid:DXImageTransform.Microsoft.Shadow(Color=#888888, Strength=0, Direction=270); - - '; - } -else { - $frontHtml.= ' - -moz-box-shadow: 0 0 0 #000000; - -webkit-box-shadow: 0 0 0 #000000; - box-shadow: 0 0 0 #000000;'; -} -$frontHtml.=' -}'; -if($settings['shadow'] == 'on-hover') { - $frontHtml.= ' -#tl'. $id . ' .item:hover, -#content #tl'. $id . ' .item:hover { - -moz-box-shadow: 0px 0px 6px rgba(0,0,0,0.5); - -webkit-box-shadow: 0px 0px 6px rgba(0,0,0,0.5); - box-shadow: 0px 0px 6px rgba(0,0,0,0.5); - - zoom: 1; - filter: progid:DXImageTransform.Microsoft.Shadow(Color=#888888, Strength=0, Direction=0), - progid:DXImageTransform.Microsoft.Shadow(Color=#888888, Strength=5, Direction=90), - progid:DXImageTransform.Microsoft.Shadow(Color=#888888, Strength=5, Direction=180), - progid:DXImageTransform.Microsoft.Shadow(Color=#888888, Strength=0, Direction=270); - - -}'; -} - -$frontHtml.= ' - - -#tl'. $id.' .item_open h2, -#content #tl'. $id.' .item_open h2 { - font-size:'.$settings['item-open-header-font-size'].'px; - color:'.$settings['item-open-header-font-color'].'; - line-height:'.$settings['item-open-header-line-height'].'px;'; - -switch($settings['item-open-header-font-type']) { - case 'regular' : $frontHtml .= ' - font-weight:normal; - font-style:normal;'; break; - - case 'thick' : $frontHtml .= ' - font-weight:100; - font-style:normal;'; break; - - case 'bold' : $frontHtml .= ' - font-weight:bold; - font-style:normal;'; break; - - case 'bold-italic' : $frontHtml .= ' - font-weight:bold; - font-style:italic;'; break; - - case 'italic' : $frontHtml .= ' - font-weight:normal; - font-style:italic;'; break; -} -$frontHtml .= ' -} - -#tl'. $id .' .item_open, -#content #tl'. $id .' .item_open{ - width: '. $settings['item-open-width'].'px; - height: '. $settings['item-height'].'px; - background:'. $settings['item-open-back-color'].' url('. $settings['item-open-background'].') repeat; - font-size:'.$settings['item-open-text-font-size'].'px; - color:'.$settings['item-open-text-font-color'].'; - line-height:'.$settings['item-open-text-line-height'].'px;'; - -switch($settings['item-open-text-font-type']) { - case 'regular' : $frontHtml .= ' - font-weight:normal; - font-style:normal;'; break; - - case 'thick' : $frontHtml .= ' - font-weight:100; - font-style:normal;'; break; - - case 'bold' : $frontHtml .= ' - font-weight:bold; - font-style:normal;'; break; - - case 'bold-italic' : $frontHtml .= ' - font-weight:bold; - font-style:italic;'; break; - - case 'italic' : $frontHtml .= ' - font-weight:normal; - font-style:italic;'; break; -} - - -if($settings['shadow'] == 'show' || $settings['shadow'] == 'on-hover') { - $frontHtml.= ' - -moz-box-shadow: 0px 0px 6px rgba(0,0,0,0.5); - -webkit-box-shadow: 0px 0px 6px rgba(0,0,0,0.5); - box-shadow: 0px 0px 6px rgba(0,0,0,0.5); - - zoom: 1; - filter: progid:DXImageTransform.Microsoft.Shadow(Color=#888888, Strength=0, Direction=0), - progid:DXImageTransform.Microsoft.Shadow(Color=#888888, Strength=5, Direction=90), - progid:DXImageTransform.Microsoft.Shadow(Color=#888888, Strength=5, Direction=180), - progid:DXImageTransform.Microsoft.Shadow(Color=#888888, Strength=0, Direction=270); - - '; - } - else { - $frontHtml.= ' - -moz-box-shadow: 0 0 0 #000000; - -webkit-box-shadow: 0 0 0 #000000; - box-shadow: 0 0 0 #000000;'; - } -$frontHtml.= ' - }'. ' - -#tl'. $id.' .item .con_borderImage, -#content #tl'. $id.' .item .con_borderImage { - border:0px; - border-bottom: '. $settings['item-image-border-width'].'px solid '. $settings['item-image-border-color'].' ; -} - -#tl'. $id.' .item_open .con_borderImage, -#content #tl'. $id.' .item_open .con_borderImage { - border-bottom: '. $settings['item-open-image-border-width'].'px solid '. $settings['item-open-image-border-color'].' ; -} - -#tl'. $id.' .item_open_cwrapper, -#content #tl'. $id.' .item_open .con_borderImage { - width: '. $settings['item-open-width'].'px; -} - -#tl'. $id.' .item_open .t_close:hover, -#content #tl'. $id.' .item_open .t_close:hover{ - background:'. $settings['button-hover-color'].'; -} - -#tl'. $id.' .item .read_more:hover, -#content #tl'. $id.' .item .read_more:hover{ - background:'. $settings['button-hover-color'].'; -} - - -#tl'. $id.' .item .read_more, -#content #tl'. $id.' .item .read_more, -#tl'. $id.' .item_open .t_close, -#content #tl'. $id.' .item_open .t_close { - - /* transparent background */ - filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=\'#44000000\', endColorstr=\'#44000000\'); -} - -#tl'. $id.' .t_node_desc, -#content #tl'. $id.' .t_node_desc, - { - - /* IE transparent background */ - filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=\'#cc1a86ac\', endColorstr=\'#cc1a86ac\'); -} - - - -#tl'. $id.' .timeline_open_content, -#content #tl'. $id.' .timeline_open_content { - padding:'. $settings['item-open-content-padding'].'px; -} - - - - -'; - -$frontHtml .=' - - -
    '; - -if($itemsArray) { - $iteration = -1; - foreach ($itemsArray as $key => $arr) { - $num = substr($key,4); - $iteration++; - - if($settings['cat-type'] == 'categories') { - $index = array_search($arr['categoryid'],$catArray); - $ccNumbers[$index]++; - $arr['dataid'] = ($ccNumbers[$index] < 10 ? '0'.$ccNumbers[$index] : $ccNumbers[$index]).'/'.$arr['categoryid']; - } - if($arr['start-item']) { - $start_item = $arr['dataid']; - - } - -$frontHtml .=' - -
    - '.(($arr['item-image'] != '') ? ' - ':'').' -

    '.$arr['item-title'].'

    - '.$arr['item-content'].' - '.(($settings['read-more'] == 'button') ? '
    Read more
    ' : '').' -
    -
    -
    - -
    -
    '; - - - } -} -$frontHtml .= ' -
    -'; -?> \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/pages/front_script.php --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/pages/front_script.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ - -(function($){ -$(window).load(function() { - - $(".scrollable-content").mCustomScrollbar(); - $("a[rel^=\'prettyPhoto\']").prettyPhoto(); - - $("#tl'.$id.'").timeline({ - itemMargin : '. $settings['item-margin'].', - scrollSpeed : '.$settings['scroll-speed'].', - easing : "'.$settings['easing'].'", - openTriggerClass : '.$read_more.', - swipeOn : '.$swipeOn.', - startItem : "'. $start_item . '", - yearsOn : '.(($settings['hide-years'] || $settings['cat-type'] == 'categories') ? 'false' : 'true').', - hideTimeline : '.($settings['hide-line'] ? 'true' : 'false').', - hideControles : '.($settings['hide-nav'] ? 'true' : 'false'). - $cats.' - }); - -}); -})(jQuery); -'; -?> \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/timthumb/timthumb.php --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/timthumb/timthumb.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1244 +0,0 @@ - /dev/null 2>&1 & - Then set WEBSHOT_XVFB_RUNNING = true below. This will save your server having to fire off a new Xvfb server and shut it down every time a new shot is generated. - You will need to take responsibility for keeping Xvfb running in case it crashes. (It seems pretty stable) - You will also need to take responsibility for server security if you're running Xvfb as root. - - -*/ -if(! defined('WEBSHOT_ENABLED') ) define ('WEBSHOT_ENABLED', false); //Beta feature. Adding webshot=1 to your query string will cause the script to return a browser screenshot rather than try to fetch an image. -if(! defined('WEBSHOT_CUTYCAPT') ) define ('WEBSHOT_CUTYCAPT', '/usr/local/bin/CutyCapt'); //The path to CutyCapt. -if(! defined('WEBSHOT_XVFB') ) define ('WEBSHOT_XVFB', '/usr/bin/xvfb-run'); //The path to the Xvfb server -if(! defined('WEBSHOT_SCREEN_X') ) define ('WEBSHOT_SCREEN_X', '1024'); //1024 works ok -if(! defined('WEBSHOT_SCREEN_Y') ) define ('WEBSHOT_SCREEN_Y', '768'); //768 works ok -if(! defined('WEBSHOT_COLOR_DEPTH') ) define ('WEBSHOT_COLOR_DEPTH', '24'); //I haven't tested anything besides 24 -if(! defined('WEBSHOT_IMAGE_FORMAT') ) define ('WEBSHOT_IMAGE_FORMAT', 'png'); //png is about 2.5 times the size of jpg but is a LOT better quality -if(! defined('WEBSHOT_TIMEOUT') ) define ('WEBSHOT_TIMEOUT', '20'); //Seconds to wait for a webshot -if(! defined('WEBSHOT_USER_AGENT') ) define ('WEBSHOT_USER_AGENT', "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18"); //I hate to do this, but a non-browser robot user agent might not show what humans see. So we pretend to be Firefox -if(! defined('WEBSHOT_JAVASCRIPT_ON') ) define ('WEBSHOT_JAVASCRIPT_ON', true); //Setting to false might give you a slight speedup and block ads. But it could cause other issues. -if(! defined('WEBSHOT_JAVA_ON') ) define ('WEBSHOT_JAVA_ON', false); //Have only tested this as fase -if(! defined('WEBSHOT_PLUGINS_ON') ) define ('WEBSHOT_PLUGINS_ON', true); //Enable flash and other plugins -if(! defined('WEBSHOT_PROXY') ) define ('WEBSHOT_PROXY', ''); //In case you're behind a proxy server. -if(! defined('WEBSHOT_XVFB_RUNNING') ) define ('WEBSHOT_XVFB_RUNNING', false); //ADVANCED: Enable this if you've got Xvfb running in the background. - - -// If ALLOW_EXTERNAL is true and ALLOW_ALL_EXTERNAL_SITES is false, then external images will only be fetched from these domains and their subdomains. -if(! isset($ALLOWED_SITES)){ - $ALLOWED_SITES = array ( - 'flickr.com', - 'staticflickr.com', - 'picasa.com', - 'img.youtube.com', - 'upload.wikimedia.org', - 'photobucket.com', - 'imgur.com', - 'imageshack.us', - 'tinypic.com', - ); -} -// ------------------------------------------------------------- -// -------------- STOP EDITING CONFIGURATION HERE -------------- -// ------------------------------------------------------------- - -timthumb::start(); - -class timthumb { - protected $src = ""; - protected $is404 = false; - protected $docRoot = ""; - protected $lastURLError = false; - protected $localImage = ""; - protected $localImageMTime = 0; - protected $url = false; - protected $myHost = ""; - protected $isURL = false; - protected $cachefile = ''; - protected $errors = array(); - protected $toDeletes = array(); - protected $cacheDirectory = ''; - protected $startTime = 0; - protected $lastBenchTime = 0; - protected $cropTop = false; - protected $salt = ""; - protected $fileCacheVersion = 1; //Generally if timthumb.php is modifed (upgraded) then the salt changes and all cache files are recreated. This is a backup mechanism to force regen. - protected $filePrependSecurityBlock = "handleErrors(); - $tim->securityChecks(); - if($tim->tryBrowserCache()){ - exit(0); - } - $tim->handleErrors(); - if(FILE_CACHE_ENABLED && $tim->tryServerCache()){ - exit(0); - } - $tim->handleErrors(); - $tim->run(); - $tim->handleErrors(); - exit(0); - } - public function __construct(){ - global $ALLOWED_SITES; - $this->startTime = microtime(true); - date_default_timezone_set('UTC'); - $this->debug(1, "Starting new request from " . $this->getIP() . " to " . $_SERVER['REQUEST_URI']); - $this->calcDocRoot(); - //On windows systems I'm assuming fileinode returns an empty string or a number that doesn't change. Check this. - $this->salt = @filemtime(__FILE__) . '-' . @fileinode(__FILE__); - $this->debug(3, "Salt is: " . $this->salt); - if(FILE_CACHE_DIRECTORY){ - if(! is_dir(FILE_CACHE_DIRECTORY)){ - @mkdir(FILE_CACHE_DIRECTORY); - if(! is_dir(FILE_CACHE_DIRECTORY)){ - $this->error("Could not create the file cache directory."); - return false; - } - } - $this->cacheDirectory = FILE_CACHE_DIRECTORY; - if (!touch($this->cacheDirectory . '/index.html')) { - $this->error("Could not create the index.html file - to fix this create an empty file named index.html file in the cache directory."); - } - } else { - $this->cacheDirectory = sys_get_temp_dir(); - } - //Clean the cache before we do anything because we don't want the first visitor after FILE_CACHE_TIME_BETWEEN_CLEANS expires to get a stale image. - $this->cleanCache(); - - $this->myHost = preg_replace('/^www\./i', '', $_SERVER['HTTP_HOST']); - $this->src = $this->param('src'); - $this->url = parse_url($this->src); - $this->src = preg_replace('/https?:\/\/(?:www\.)?' . $this->myHost . '/i', '', $this->src); - - if(strlen($this->src) <= 3){ - $this->error("No image specified"); - return false; - } - if(BLOCK_EXTERNAL_LEECHERS && array_key_exists('HTTP_REFERER', $_SERVER) && (! preg_match('/^https?:\/\/(?:www\.)?' . $this->myHost . '(?:$|\/)/i', $_SERVER['HTTP_REFERER']))){ - // base64 encoded red image that says 'no hotlinkers' - // nothing to worry about! :) - $imgData = base64_decode("R0lGODlhUAAMAIAAAP8AAP///yH5BAAHAP8ALAAAAABQAAwAAAJpjI+py+0Po5y0OgAMjjv01YUZ\nOGplhWXfNa6JCLnWkXplrcBmW+spbwvaVr/cDyg7IoFC2KbYVC2NQ5MQ4ZNao9Ynzjl9ScNYpneb\nDULB3RP6JuPuaGfuuV4fumf8PuvqFyhYtjdoeFgAADs="); - header('Content-Type: image/gif'); - header('Content-Length: ' . sizeof($imgData)); - header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0'); - header("Pragma: no-cache"); - header('Expires: ' . gmdate ('D, d M Y H:i:s', time())); - echo $imgData; - return false; - exit(0); - } - if(preg_match('/^https?:\/\/[^\/]+/i', $this->src)){ - $this->debug(2, "Is a request for an external URL: " . $this->src); - $this->isURL = true; - } else { - $this->debug(2, "Is a request for an internal file: " . $this->src); - } - if($this->isURL && (! ALLOW_EXTERNAL)){ - $this->error("You are not allowed to fetch images from an external website."); - return false; - } - if($this->isURL){ - if(ALLOW_ALL_EXTERNAL_SITES){ - $this->debug(2, "Fetching from all external sites is enabled."); - } else { - $this->debug(2, "Fetching only from selected external sites is enabled."); - $allowed = false; - foreach($ALLOWED_SITES as $site){ - if ((strtolower(substr($this->url['host'],-strlen($site)-1)) === strtolower(".$site")) || (strtolower($this->url['host'])===strtolower($site))) { - $this->debug(3, "URL hostname {$this->url['host']} matches $site so allowing."); - $allowed = true; - } - } - if(! $allowed){ - return $this->error("You may not fetch images from that site. To enable this site in timthumb, you can either add it to \$ALLOWED_SITES and set ALLOW_EXTERNAL=true. Or you can set ALLOW_ALL_EXTERNAL_SITES=true, depending on your security needs."); - } - } - } - - $cachePrefix = ($this->isURL ? '_ext_' : '_int_'); - if($this->isURL){ - $arr = explode('&', $_SERVER ['QUERY_STRING']); - asort($arr); - $this->cachefile = $this->cacheDirectory . '/' . FILE_CACHE_PREFIX . $cachePrefix . md5($this->salt . implode('', $arr) . $this->fileCacheVersion) . FILE_CACHE_SUFFIX; - } else { - $this->localImage = $this->getLocalImagePath($this->src); - if(! $this->localImage){ - $this->debug(1, "Could not find the local image: {$this->localImage}"); - $this->error("Could not find the internal image you specified."); - $this->set404(); - return false; - } - $this->debug(1, "Local image path is {$this->localImage}"); - $this->localImageMTime = @filemtime($this->localImage); - //We include the mtime of the local file in case in changes on disk. - $this->cachefile = $this->cacheDirectory . '/' . FILE_CACHE_PREFIX . $cachePrefix . md5($this->salt . $this->localImageMTime . $_SERVER ['QUERY_STRING'] . $this->fileCacheVersion) . FILE_CACHE_SUFFIX; - } - $this->debug(2, "Cache file is: " . $this->cachefile); - - return true; - } - public function __destruct(){ - foreach($this->toDeletes as $del){ - $this->debug(2, "Deleting temp file $del"); - @unlink($del); - } - } - public function run(){ - if($this->isURL){ - if(! ALLOW_EXTERNAL){ - $this->debug(1, "Got a request for an external image but ALLOW_EXTERNAL is disabled so returning error msg."); - $this->error("You are not allowed to fetch images from an external website."); - return false; - } - $this->debug(3, "Got request for external image. Starting serveExternalImage."); - if($this->param('webshot')){ - if(WEBSHOT_ENABLED){ - $this->debug(3, "webshot param is set, so we're going to take a webshot."); - $this->serveWebshot(); - } else { - $this->error("You added the webshot parameter but webshots are disabled on this server. You need to set WEBSHOT_ENABLED == true to enable webshots."); - } - } else { - $this->debug(3, "webshot is NOT set so we're going to try to fetch a regular image."); - $this->serveExternalImage(); - - } - } else { - $this->debug(3, "Got request for internal image. Starting serveInternalImage()"); - $this->serveInternalImage(); - } - return true; - } - protected function handleErrors(){ - if($this->haveErrors()){ - if(NOT_FOUND_IMAGE && $this->is404()){ - if($this->serveImg(NOT_FOUND_IMAGE)){ - exit(0); - } else { - $this->error("Additionally, the 404 image that is configured could not be found or there was an error serving it."); - } - } - if(ERROR_IMAGE){ - if($this->serveImg(ERROR_IMAGE)){ - exit(0); - } else { - $this->error("Additionally, the error image that is configured could not be found or there was an error serving it."); - } - } - $this->serveErrors(); - exit(0); - } - return false; - } - protected function tryBrowserCache(){ - if(BROWSER_CACHE_DISABLE){ $this->debug(3, "Browser caching is disabled"); return false; } - if(!empty($_SERVER['HTTP_IF_MODIFIED_SINCE']) ){ - $this->debug(3, "Got a conditional get"); - $mtime = false; - //We've already checked if the real file exists in the constructor - if(! is_file($this->cachefile)){ - //If we don't have something cached, regenerate the cached image. - return false; - } - if($this->localImageMTime){ - $mtime = $this->localImageMTime; - $this->debug(3, "Local real file's modification time is $mtime"); - } else if(is_file($this->cachefile)){ //If it's not a local request then use the mtime of the cached file to determine the 304 - $mtime = @filemtime($this->cachefile); - $this->debug(3, "Cached file's modification time is $mtime"); - } - if(! $mtime){ return false; } - - $iftime = strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']); - $this->debug(3, "The conditional get's if-modified-since unixtime is $iftime"); - if($iftime < 1){ - $this->debug(3, "Got an invalid conditional get modified since time. Returning false."); - return false; - } - if($iftime < $mtime){ //Real file or cache file has been modified since last request, so force refetch. - $this->debug(3, "File has been modified since last fetch."); - return false; - } else { //Otherwise serve a 304 - $this->debug(3, "File has not been modified since last get, so serving a 304."); - header ($_SERVER['SERVER_PROTOCOL'] . ' 304 Not Modified'); - $this->debug(1, "Returning 304 not modified"); - return true; - } - } - return false; - } - protected function tryServerCache(){ - $this->debug(3, "Trying server cache"); - if(file_exists($this->cachefile)){ - $this->debug(3, "Cachefile {$this->cachefile} exists"); - if($this->isURL){ - $this->debug(3, "This is an external request, so checking if the cachefile is empty which means the request failed previously."); - if(filesize($this->cachefile) < 1){ - $this->debug(3, "Found an empty cachefile indicating a failed earlier request. Checking how old it is."); - //Fetching error occured previously - if(time() - @filemtime($this->cachefile) > WAIT_BETWEEN_FETCH_ERRORS){ - $this->debug(3, "File is older than " . WAIT_BETWEEN_FETCH_ERRORS . " seconds. Deleting and returning false so app can try and load file."); - @unlink($this->cachefile); - return false; //to indicate we didn't serve from cache and app should try and load - } else { - $this->debug(3, "Empty cachefile is still fresh so returning message saying we had an error fetching this image from remote host."); - $this->set404(); - $this->error("An error occured fetching image."); - return false; - } - } - } else { - $this->debug(3, "Trying to serve cachefile {$this->cachefile}"); - } - if($this->serveCacheFile()){ - $this->debug(3, "Succesfully served cachefile {$this->cachefile}"); - return true; - } else { - $this->debug(3, "Failed to serve cachefile {$this->cachefile} - Deleting it from cache."); - //Image serving failed. We can't retry at this point, but lets remove it from cache so the next request recreates it - @unlink($this->cachefile); - return true; - } - } - } - protected function error($err){ - $this->debug(3, "Adding error message: $err"); - $this->errors[] = $err; - return false; - - } - protected function haveErrors(){ - if(sizeof($this->errors) > 0){ - return true; - } - return false; - } - protected function serveErrors(){ - header ($_SERVER['SERVER_PROTOCOL'] . ' 400 Bad Request'); - $html = '
      '; - foreach($this->errors as $err){ - $html .= '
    • ' . htmlentities($err) . '
    • '; - } - $html .= '
    '; - echo '

    A TimThumb error has occured

    The following error(s) occured:
    ' . $html . '
    '; - echo '
    Query String : ' . htmlentities ($_SERVER['QUERY_STRING']); - echo '
    TimThumb version : ' . VERSION . ''; - } - protected function serveInternalImage(){ - $this->debug(3, "Local image path is $this->localImage"); - if(! $this->localImage){ - $this->sanityFail("localImage not set after verifying it earlier in the code."); - return false; - } - $fileSize = filesize($this->localImage); - if($fileSize > MAX_FILE_SIZE){ - $this->error("The file you specified is greater than the maximum allowed file size."); - return false; - } - if($fileSize <= 0){ - $this->error("The file you specified is <= 0 bytes."); - return false; - } - $this->debug(3, "Calling processImageAndWriteToCache() for local image."); - if($this->processImageAndWriteToCache($this->localImage)){ - $this->serveCacheFile(); - return true; - } else { - return false; - } - } - protected function cleanCache(){ - if (FILE_CACHE_TIME_BETWEEN_CLEANS < 0) { - return; - } - $this->debug(3, "cleanCache() called"); - $lastCleanFile = $this->cacheDirectory . '/timthumb_cacheLastCleanTime.touch'; - - //If this is a new timthumb installation we need to create the file - if(! is_file($lastCleanFile)){ - $this->debug(1, "File tracking last clean doesn't exist. Creating $lastCleanFile"); - if (!touch($lastCleanFile)) { - $this->error("Could not create cache clean timestamp file."); - } - return; - } - if(@filemtime($lastCleanFile) < (time() - FILE_CACHE_TIME_BETWEEN_CLEANS) ){ //Cache was last cleaned more than 1 day ago - $this->debug(1, "Cache was last cleaned more than " . FILE_CACHE_TIME_BETWEEN_CLEANS . " seconds ago. Cleaning now."); - // Very slight race condition here, but worst case we'll have 2 or 3 servers cleaning the cache simultaneously once a day. - if (!touch($lastCleanFile)) { - $this->error("Could not create cache clean timestamp file."); - } - $files = glob($this->cacheDirectory . '/*' . FILE_CACHE_SUFFIX); - if ($files) { - $timeAgo = time() - FILE_CACHE_MAX_FILE_AGE; - foreach($files as $file){ - if(@filemtime($file) < $timeAgo){ - $this->debug(3, "Deleting cache file $file older than max age: " . FILE_CACHE_MAX_FILE_AGE . " seconds"); - @unlink($file); - } - } - } - return true; - } else { - $this->debug(3, "Cache was cleaned less than " . FILE_CACHE_TIME_BETWEEN_CLEANS . " seconds ago so no cleaning needed."); - } - return false; - } - protected function processImageAndWriteToCache($localImage){ - $sData = getimagesize($localImage); - $origType = $sData[2]; - $mimeType = $sData['mime']; - - $this->debug(3, "Mime type of image is $mimeType"); - if(! preg_match('/^image\/(?:gif|jpg|jpeg|png)$/i', $mimeType)){ - return $this->error("The image being resized is not a valid gif, jpg or png."); - } - - if (!function_exists ('imagecreatetruecolor')) { - return $this->error('GD Library Error: imagecreatetruecolor does not exist - please contact your webhost and ask them to install the GD library'); - } - - if (function_exists ('imagefilter') && defined ('IMG_FILTER_NEGATE')) { - $imageFilters = array ( - 1 => array (IMG_FILTER_NEGATE, 0), - 2 => array (IMG_FILTER_GRAYSCALE, 0), - 3 => array (IMG_FILTER_BRIGHTNESS, 1), - 4 => array (IMG_FILTER_CONTRAST, 1), - 5 => array (IMG_FILTER_COLORIZE, 4), - 6 => array (IMG_FILTER_EDGEDETECT, 0), - 7 => array (IMG_FILTER_EMBOSS, 0), - 8 => array (IMG_FILTER_GAUSSIAN_BLUR, 0), - 9 => array (IMG_FILTER_SELECTIVE_BLUR, 0), - 10 => array (IMG_FILTER_MEAN_REMOVAL, 0), - 11 => array (IMG_FILTER_SMOOTH, 0), - ); - } - - // get standard input properties - $new_width = (int) abs ($this->param('w', 0)); - $new_height = (int) abs ($this->param('h', 0)); - $zoom_crop = (int) $this->param('zc', DEFAULT_ZC); - $quality = (int) abs ($this->param('q', DEFAULT_Q)); - $align = $this->cropTop ? 't' : $this->param('a', 'c'); - $filters = $this->param('f', DEFAULT_F); - $sharpen = (bool) $this->param('s', DEFAULT_S); - $canvas_color = $this->param('cc', DEFAULT_CC); - $canvas_trans = (bool) $this->param('ct', '1'); - - // set default width and height if neither are set already - if ($new_width == 0 && $new_height == 0) { - $new_width = 100; - $new_height = 100; - } - - // ensure size limits can not be abused - $new_width = min ($new_width, MAX_WIDTH); - $new_height = min ($new_height, MAX_HEIGHT); - - // set memory limit to be able to have enough space to resize larger images - $this->setMemoryLimit(); - - // open the existing image - $image = $this->openImage ($mimeType, $localImage); - if ($image === false) { - return $this->error('Unable to open image.'); - } - - // Get original width and height - $width = imagesx ($image); - $height = imagesy ($image); - $origin_x = 0; - $origin_y = 0; - - // generate new w/h if not provided - if ($new_width && !$new_height) { - $new_height = floor ($height * ($new_width / $width)); - } else if ($new_height && !$new_width) { - $new_width = floor ($width * ($new_height / $height)); - } - - // scale down and add borders - if ($zoom_crop == 3) { - - $final_height = $height * ($new_width / $width); - - if ($final_height > $new_height) { - $new_width = $width * ($new_height / $height); - } else { - $new_height = $final_height; - } - - } - - // create a new true color image - $canvas = imagecreatetruecolor ($new_width, $new_height); - imagealphablending ($canvas, false); - - if (strlen($canvas_color) == 3) { //if is 3-char notation, edit string into 6-char notation - $canvas_color = str_repeat(substr($canvas_color, 0, 1), 2) . str_repeat(substr($canvas_color, 1, 1), 2) . str_repeat(substr($canvas_color, 2, 1), 2); - } else if (strlen($canvas_color) != 6) { - $canvas_color = DEFAULT_CC; // on error return default canvas color - } - - $canvas_color_R = hexdec (substr ($canvas_color, 0, 2)); - $canvas_color_G = hexdec (substr ($canvas_color, 2, 2)); - $canvas_color_B = hexdec (substr ($canvas_color, 4, 2)); - - // Create a new transparent color for image - // If is a png and PNG_IS_TRANSPARENT is false then remove the alpha transparency - // (and if is set a canvas color show it in the background) - if(preg_match('/^image\/png$/i', $mimeType) && !PNG_IS_TRANSPARENT && $canvas_trans){ - $color = imagecolorallocatealpha ($canvas, $canvas_color_R, $canvas_color_G, $canvas_color_B, 127); - }else{ - $color = imagecolorallocatealpha ($canvas, $canvas_color_R, $canvas_color_G, $canvas_color_B, 0); - } - - - // Completely fill the background of the new image with allocated color. - imagefill ($canvas, 0, 0, $color); - - // scale down and add borders - if ($zoom_crop == 2) { - - $final_height = $height * ($new_width / $width); - - if ($final_height > $new_height) { - - $origin_x = $new_width / 2; - $new_width = $width * ($new_height / $height); - $origin_x = round ($origin_x - ($new_width / 2)); - - } else { - - $origin_y = $new_height / 2; - $new_height = $final_height; - $origin_y = round ($origin_y - ($new_height / 2)); - - } - - } - - // Restore transparency blending - imagesavealpha ($canvas, true); - - if ($zoom_crop > 0) { - - $src_x = $src_y = 0; - $src_w = $width; - $src_h = $height; - - $cmp_x = $width / $new_width; - $cmp_y = $height / $new_height; - - // calculate x or y coordinate and width or height of source - if ($cmp_x > $cmp_y) { - - $src_w = round ($width / $cmp_x * $cmp_y); - $src_x = round (($width - ($width / $cmp_x * $cmp_y)) / 2); - - } else if ($cmp_y > $cmp_x) { - - $src_h = round ($height / $cmp_y * $cmp_x); - $src_y = round (($height - ($height / $cmp_y * $cmp_x)) / 2); - - } - - // positional cropping! - if ($align) { - if (strpos ($align, 't') !== false) { - $src_y = 0; - } - if (strpos ($align, 'b') !== false) { - $src_y = $height - $src_h; - } - if (strpos ($align, 'l') !== false) { - $src_x = 0; - } - if (strpos ($align, 'r') !== false) { - $src_x = $width - $src_w; - } - } - - imagecopyresampled ($canvas, $image, $origin_x, $origin_y, $src_x, $src_y, $new_width, $new_height, $src_w, $src_h); - - } else { - - // copy and resize part of an image with resampling - imagecopyresampled ($canvas, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height); - - } - - if ($filters != '' && function_exists ('imagefilter') && defined ('IMG_FILTER_NEGATE')) { - // apply filters to image - $filterList = explode ('|', $filters); - foreach ($filterList as $fl) { - - $filterSettings = explode (',', $fl); - if (isset ($imageFilters[$filterSettings[0]])) { - - for ($i = 0; $i < 4; $i ++) { - if (!isset ($filterSettings[$i])) { - $filterSettings[$i] = null; - } else { - $filterSettings[$i] = (int) $filterSettings[$i]; - } - } - - switch ($imageFilters[$filterSettings[0]][1]) { - - case 1: - - imagefilter ($canvas, $imageFilters[$filterSettings[0]][0], $filterSettings[1]); - break; - - case 2: - - imagefilter ($canvas, $imageFilters[$filterSettings[0]][0], $filterSettings[1], $filterSettings[2]); - break; - - case 3: - - imagefilter ($canvas, $imageFilters[$filterSettings[0]][0], $filterSettings[1], $filterSettings[2], $filterSettings[3]); - break; - - case 4: - - imagefilter ($canvas, $imageFilters[$filterSettings[0]][0], $filterSettings[1], $filterSettings[2], $filterSettings[3], $filterSettings[4]); - break; - - default: - - imagefilter ($canvas, $imageFilters[$filterSettings[0]][0]); - break; - - } - } - } - } - - // sharpen image - if ($sharpen && function_exists ('imageconvolution')) { - - $sharpenMatrix = array ( - array (-1,-1,-1), - array (-1,16,-1), - array (-1,-1,-1), - ); - - $divisor = 8; - $offset = 0; - - imageconvolution ($canvas, $sharpenMatrix, $divisor, $offset); - - } - //Straight from Wordpress core code. Reduces filesize by up to 70% for PNG's - if ( (IMAGETYPE_PNG == $origType || IMAGETYPE_GIF == $origType) && function_exists('imageistruecolor') && !imageistruecolor( $image ) && imagecolortransparent( $image ) > 0 ){ - imagetruecolortopalette( $canvas, false, imagecolorstotal( $image ) ); - } - - $imgType = ""; - $tempfile = tempnam($this->cacheDirectory, 'timthumb_tmpimg_'); - if(preg_match('/^image\/(?:jpg|jpeg)$/i', $mimeType)){ - $imgType = 'jpg'; - imagejpeg($canvas, $tempfile, $quality); - } else if(preg_match('/^image\/png$/i', $mimeType)){ - $imgType = 'png'; - imagepng($canvas, $tempfile, floor($quality * 0.09)); - } else if(preg_match('/^image\/gif$/i', $mimeType)){ - $imgType = 'gif'; - imagegif($canvas, $tempfile); - } else { - return $this->sanityFail("Could not match mime type after verifying it previously."); - } - - if($imgType == 'png' && OPTIPNG_ENABLED && OPTIPNG_PATH && @is_file(OPTIPNG_PATH)){ - $exec = OPTIPNG_PATH; - $this->debug(3, "optipng'ing $tempfile"); - $presize = filesize($tempfile); - $out = `$exec -o1 $tempfile`; //you can use up to -o7 but it really slows things down - clearstatcache(); - $aftersize = filesize($tempfile); - $sizeDrop = $presize - $aftersize; - if($sizeDrop > 0){ - $this->debug(1, "optipng reduced size by $sizeDrop"); - } else if($sizeDrop < 0){ - $this->debug(1, "optipng increased size! Difference was: $sizeDrop"); - } else { - $this->debug(1, "optipng did not change image size."); - } - } else if($imgType == 'png' && PNGCRUSH_ENABLED && PNGCRUSH_PATH && @is_file(PNGCRUSH_PATH)){ - $exec = PNGCRUSH_PATH; - $tempfile2 = tempnam($this->cacheDirectory, 'timthumb_tmpimg_'); - $this->debug(3, "pngcrush'ing $tempfile to $tempfile2"); - $out = `$exec $tempfile $tempfile2`; - $todel = ""; - if(is_file($tempfile2)){ - $sizeDrop = filesize($tempfile) - filesize($tempfile2); - if($sizeDrop > 0){ - $this->debug(1, "pngcrush was succesful and gave a $sizeDrop byte size reduction"); - $todel = $tempfile; - $tempfile = $tempfile2; - } else { - $this->debug(1, "pngcrush did not reduce file size. Difference was $sizeDrop bytes."); - $todel = $tempfile2; - } - } else { - $this->debug(3, "pngcrush failed with output: $out"); - $todel = $tempfile2; - } - @unlink($todel); - } - - $this->debug(3, "Rewriting image with security header."); - $tempfile4 = tempnam($this->cacheDirectory, 'timthumb_tmpimg_'); - $context = stream_context_create (); - $fp = fopen($tempfile,'r',0,$context); - file_put_contents($tempfile4, $this->filePrependSecurityBlock . $imgType . ' ?' . '>'); //6 extra bytes, first 3 being image type - file_put_contents($tempfile4, $fp, FILE_APPEND); - fclose($fp); - @unlink($tempfile); - $this->debug(3, "Locking and replacing cache file."); - $lockFile = $this->cachefile . '.lock'; - $fh = fopen($lockFile, 'w'); - if(! $fh){ - return $this->error("Could not open the lockfile for writing an image."); - } - if(flock($fh, LOCK_EX)){ - @unlink($this->cachefile); //rename generally overwrites, but doing this in case of platform specific quirks. File might not exist yet. - rename($tempfile4, $this->cachefile); - flock($fh, LOCK_UN); - fclose($fh); - @unlink($lockFile); - } else { - fclose($fh); - @unlink($lockFile); - @unlink($tempfile4); - return $this->error("Could not get a lock for writing."); - } - $this->debug(3, "Done image replace with security header. Cleaning up and running cleanCache()"); - imagedestroy($canvas); - imagedestroy($image); - return true; - } - protected function calcDocRoot(){ - $docRoot = @$_SERVER['DOCUMENT_ROOT']; - if (defined('LOCAL_FILE_BASE_DIRECTORY')) { - $docRoot = LOCAL_FILE_BASE_DIRECTORY; - } - if(!isset($docRoot)){ - $this->debug(3, "DOCUMENT_ROOT is not set. This is probably windows. Starting search 1."); - if(isset($_SERVER['SCRIPT_FILENAME'])){ - $docRoot = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF']))); - $this->debug(3, "Generated docRoot using SCRIPT_FILENAME and PHP_SELF as: $docRoot"); - } - } - if(!isset($docRoot)){ - $this->debug(3, "DOCUMENT_ROOT still is not set. Starting search 2."); - if(isset($_SERVER['PATH_TRANSLATED'])){ - $docRoot = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF']))); - $this->debug(3, "Generated docRoot using PATH_TRANSLATED and PHP_SELF as: $docRoot"); - } - } - if($docRoot && $_SERVER['DOCUMENT_ROOT'] != '/'){ $docRoot = preg_replace('/\/$/', '', $docRoot); } - $this->debug(3, "Doc root is: " . $docRoot); - $this->docRoot = $docRoot; - - } - protected function getLocalImagePath($src){ - $src = ltrim($src, '/'); //strip off the leading '/' - if(! $this->docRoot){ - $this->debug(3, "We have no document root set, so as a last resort, lets check if the image is in the current dir and serve that."); - //We don't support serving images outside the current dir if we don't have a doc root for security reasons. - $file = preg_replace('/^.*?([^\/\\\\]+)$/', '$1', $src); //strip off any path info and just leave the filename. - if(is_file($file)){ - return $this->realpath($file); - } - return $this->error("Could not find your website document root and the file specified doesn't exist in timthumbs directory. We don't support serving files outside timthumb's directory without a document root for security reasons."); - } //Do not go past this point without docRoot set - - //Try src under docRoot - if(file_exists ($this->docRoot . '/' . $src)) { - $this->debug(3, "Found file as " . $this->docRoot . '/' . $src); - $real = $this->realpath($this->docRoot . '/' . $src); - if(stripos($real, $this->docRoot) === 0){ - return $real; - } else { - $this->debug(1, "Security block: The file specified occurs outside the document root."); - //allow search to continue - } - } - //Check absolute paths and then verify the real path is under doc root - $absolute = $this->realpath('/' . $src); - if($absolute && file_exists($absolute)){ //realpath does file_exists check, so can probably skip the exists check here - $this->debug(3, "Found absolute path: $absolute"); - if(! $this->docRoot){ $this->sanityFail("docRoot not set when checking absolute path."); } - if(stripos($absolute, $this->docRoot) === 0){ - return $absolute; - } else { - $this->debug(1, "Security block: The file specified occurs outside the document root."); - //and continue search - } - } - - $base = $this->docRoot; - - // account for Windows directory structure - if (strstr($_SERVER['SCRIPT_FILENAME'],':')) { - $sub_directories = explode('\\', str_replace($this->docRoot, '', $_SERVER['SCRIPT_FILENAME'])); - } else { - $sub_directories = explode('/', str_replace($this->docRoot, '', $_SERVER['SCRIPT_FILENAME'])); - } - - foreach ($sub_directories as $sub){ - $base .= $sub . '/'; - $this->debug(3, "Trying file as: " . $base . $src); - if(file_exists($base . $src)){ - $this->debug(3, "Found file as: " . $base . $src); - $real = $this->realpath($base . $src); - if(stripos($real, $this->realpath($this->docRoot)) === 0){ - return $real; - } else { - $this->debug(1, "Security block: The file specified occurs outside the document root."); - //And continue search - } - } - } - return false; - } - protected function realpath($path){ - //try to remove any relative paths - $remove_relatives = '/\w+\/\.\.\//'; - while(preg_match($remove_relatives,$path)){ - $path = preg_replace($remove_relatives, '', $path); - } - //if any remain use PHP realpath to strip them out, otherwise return $path - //if using realpath, any symlinks will also be resolved - return preg_match('#^\.\./|/\.\./#', $path) ? realpath($path) : $path; - } - protected function toDelete($name){ - $this->debug(3, "Scheduling file $name to delete on destruct."); - $this->toDeletes[] = $name; - } - protected function serveWebshot(){ - $this->debug(3, "Starting serveWebshot"); - $instr = "Please follow the instructions at http://code.google.com/p/timthumb/ to set your server up for taking website screenshots."; - if(! is_file(WEBSHOT_CUTYCAPT)){ - return $this->error("CutyCapt is not installed. $instr"); - } - if(! is_file(WEBSHOT_XVFB)){ - return $this->Error("Xvfb is not installed. $instr"); - } - $cuty = WEBSHOT_CUTYCAPT; - $xv = WEBSHOT_XVFB; - $screenX = WEBSHOT_SCREEN_X; - $screenY = WEBSHOT_SCREEN_Y; - $colDepth = WEBSHOT_COLOR_DEPTH; - $format = WEBSHOT_IMAGE_FORMAT; - $timeout = WEBSHOT_TIMEOUT * 1000; - $ua = WEBSHOT_USER_AGENT; - $jsOn = WEBSHOT_JAVASCRIPT_ON ? 'on' : 'off'; - $javaOn = WEBSHOT_JAVA_ON ? 'on' : 'off'; - $pluginsOn = WEBSHOT_PLUGINS_ON ? 'on' : 'off'; - $proxy = WEBSHOT_PROXY ? ' --http-proxy=' . WEBSHOT_PROXY : ''; - $tempfile = tempnam($this->cacheDirectory, 'timthumb_webshot'); - $url = $this->src; - if(! preg_match('/^https?:\/\/[a-zA-Z0-9\.\-]+/i', $url)){ - return $this->error("Invalid URL supplied."); - } - $url = preg_replace('/[^A-Za-z0-9\-\.\_\~:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=]+/', '', $url); //RFC 3986 - //Very important we don't allow injection of shell commands here. URL is between quotes and we are only allowing through chars allowed by a the RFC - // which AFAIKT can't be used for shell injection. - if(WEBSHOT_XVFB_RUNNING){ - putenv('DISPLAY=:100.0'); - $command = "$cuty $proxy --max-wait=$timeout --user-agent=\"$ua\" --javascript=$jsOn --java=$javaOn --plugins=$pluginsOn --js-can-open-windows=off --url=\"$url\" --out-format=$format --out=$tempfile"; - } else { - $command = "$xv --server-args=\"-screen 0, {$screenX}x{$screenY}x{$colDepth}\" $cuty $proxy --max-wait=$timeout --user-agent=\"$ua\" --javascript=$jsOn --java=$javaOn --plugins=$pluginsOn --js-can-open-windows=off --url=\"$url\" --out-format=$format --out=$tempfile"; - } - $this->debug(3, "Executing command: $command"); - $out = `$command`; - $this->debug(3, "Received output: $out"); - if(! is_file($tempfile)){ - $this->set404(); - return $this->error("The command to create a thumbnail failed."); - } - $this->cropTop = true; - if($this->processImageAndWriteToCache($tempfile)){ - $this->debug(3, "Image processed succesfully. Serving from cache"); - return $this->serveCacheFile(); - } else { - return false; - } - } - protected function serveExternalImage(){ - if(! preg_match('/^https?:\/\/[a-zA-Z0-9\-\.]+/i', $this->src)){ - $this->error("Invalid URL supplied."); - return false; - } - $tempfile = tempnam($this->cacheDirectory, 'timthumb'); - $this->debug(3, "Fetching external image into temporary file $tempfile"); - $this->toDelete($tempfile); - #fetch file here - if(! $this->getURL($this->src, $tempfile)){ - @unlink($this->cachefile); - touch($this->cachefile); - $this->debug(3, "Error fetching URL: " . $this->lastURLError); - $this->error("Error reading the URL you specified from remote host." . $this->lastURLError); - return false; - } - - $mimeType = $this->getMimeType($tempfile); - if(! preg_match("/^image\/(?:jpg|jpeg|gif|png)$/i", $mimeType)){ - $this->debug(3, "Remote file has invalid mime type: $mimeType"); - @unlink($this->cachefile); - touch($this->cachefile); - $this->error("The remote file is not a valid image."); - return false; - } - if($this->processImageAndWriteToCache($tempfile)){ - $this->debug(3, "Image processed succesfully. Serving from cache"); - return $this->serveCacheFile(); - } else { - return false; - } - } - public static function curlWrite($h, $d){ - fwrite(self::$curlFH, $d); - self::$curlDataWritten += strlen($d); - if(self::$curlDataWritten > MAX_FILE_SIZE){ - return 0; - } else { - return strlen($d); - } - } - protected function serveCacheFile(){ - $this->debug(3, "Serving {$this->cachefile}"); - if(! is_file($this->cachefile)){ - $this->error("serveCacheFile called in timthumb but we couldn't find the cached file."); - return false; - } - $fp = fopen($this->cachefile, 'rb'); - if(! $fp){ return $this->error("Could not open cachefile."); } - fseek($fp, strlen($this->filePrependSecurityBlock), SEEK_SET); - $imgType = fread($fp, 3); - fseek($fp, 3, SEEK_CUR); - if(ftell($fp) != strlen($this->filePrependSecurityBlock) + 6){ - @unlink($this->cachefile); - return $this->error("The cached image file seems to be corrupt."); - } - $imageDataSize = filesize($this->cachefile) - (strlen($this->filePrependSecurityBlock) + 6); - $this->sendImageHeaders($imgType, $imageDataSize); - $bytesSent = @fpassthru($fp); - fclose($fp); - if($bytesSent > 0){ - return true; - } - $content = file_get_contents ($this->cachefile); - if ($content != FALSE) { - $content = substr($content, strlen($this->filePrependSecurityBlock) + 6); - echo $content; - $this->debug(3, "Served using file_get_contents and echo"); - return true; - } else { - $this->error("Cache file could not be loaded."); - return false; - } - } - protected function sendImageHeaders($mimeType, $dataSize){ - if(! preg_match('/^image\//i', $mimeType)){ - $mimeType = 'image/' . $mimeType; - } - if(strtolower($mimeType) == 'image/jpg'){ - $mimeType = 'image/jpeg'; - } - $gmdate_expires = gmdate ('D, d M Y H:i:s', strtotime ('now +10 days')) . ' GMT'; - $gmdate_modified = gmdate ('D, d M Y H:i:s') . ' GMT'; - // send content headers then display image - header ('Content-Type: ' . $mimeType); - header ('Accept-Ranges: none'); //Changed this because we don't accept range requests - header ('Last-Modified: ' . $gmdate_modified); - header ('Content-Length: ' . $dataSize); - if(BROWSER_CACHE_DISABLE){ - $this->debug(3, "Browser cache is disabled so setting non-caching headers."); - header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0'); - header("Pragma: no-cache"); - header('Expires: ' . gmdate ('D, d M Y H:i:s', time())); - } else { - $this->debug(3, "Browser caching is enabled"); - header('Cache-Control: max-age=' . BROWSER_CACHE_MAX_AGE . ', must-revalidate'); - header('Expires: ' . $gmdate_expires); - } - return true; - } - protected function securityChecks(){ - } - protected function param($property, $default = ''){ - if (isset ($_GET[$property])) { - return $_GET[$property]; - } else { - return $default; - } - } - protected function openImage($mimeType, $src){ - switch ($mimeType) { - case 'image/jpeg': - $image = imagecreatefromjpeg ($src); - break; - - case 'image/png': - $image = imagecreatefrompng ($src); - break; - - case 'image/gif': - $image = imagecreatefromgif ($src); - break; - - default: - $this->error("Unrecognised mimeType"); - } - - return $image; - } - protected function getIP(){ - $rem = @$_SERVER["REMOTE_ADDR"]; - $ff = @$_SERVER["HTTP_X_FORWARDED_FOR"]; - $ci = @$_SERVER["HTTP_CLIENT_IP"]; - if(preg_match('/^(?:192\.168|172\.16|10\.|127\.)/', $rem)){ - if($ff){ return $ff; } - if($ci){ return $ci; } - return $rem; - } else { - if($rem){ return $rem; } - if($ff){ return $ff; } - if($ci){ return $ci; } - return "UNKNOWN"; - } - } - protected function debug($level, $msg){ - if(DEBUG_ON && $level <= DEBUG_LEVEL){ - $execTime = sprintf('%.6f', microtime(true) - $this->startTime); - $tick = sprintf('%.6f', 0); - if($this->lastBenchTime > 0){ - $tick = sprintf('%.6f', microtime(true) - $this->lastBenchTime); - } - $this->lastBenchTime = microtime(true); - error_log("TimThumb Debug line " . __LINE__ . " [$execTime : $tick]: $msg"); - } - } - protected function sanityFail($msg){ - return $this->error("There is a problem in the timthumb code. Message: Please report this error at timthumb's bug tracking page: $msg"); - } - protected function getMimeType($file){ - $info = getimagesize($file); - if(is_array($info) && $info['mime']){ - return $info['mime']; - } - return ''; - } - protected function setMemoryLimit(){ - $inimem = ini_get('memory_limit'); - $inibytes = timthumb::returnBytes($inimem); - $ourbytes = timthumb::returnBytes(MEMORY_LIMIT); - if($inibytes < $ourbytes){ - ini_set ('memory_limit', MEMORY_LIMIT); - $this->debug(3, "Increased memory from $inimem to " . MEMORY_LIMIT); - } else { - $this->debug(3, "Not adjusting memory size because the current setting is " . $inimem . " and our size of " . MEMORY_LIMIT . " is smaller."); - } - } - protected static function returnBytes($size_str){ - switch (substr ($size_str, -1)) - { - case 'M': case 'm': return (int)$size_str * 1048576; - case 'K': case 'k': return (int)$size_str * 1024; - case 'G': case 'g': return (int)$size_str * 1073741824; - default: return $size_str; - } - } - protected function getURL($url, $tempfile){ - $this->lastURLError = false; - $url = preg_replace('/ /', '%20', $url); - if(function_exists('curl_init')){ - $this->debug(3, "Curl is installed so using it to fetch URL."); - self::$curlFH = fopen($tempfile, 'w'); - if(! self::$curlFH){ - $this->error("Could not open $tempfile for writing."); - return false; - } - self::$curlDataWritten = 0; - $this->debug(3, "Fetching url with curl: $url"); - $curl = curl_init($url); - curl_setopt ($curl, CURLOPT_TIMEOUT, CURL_TIMEOUT); - curl_setopt ($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30"); - curl_setopt ($curl, CURLOPT_RETURNTRANSFER, TRUE); - curl_setopt ($curl, CURLOPT_HEADER, 0); - curl_setopt ($curl, CURLOPT_SSL_VERIFYPEER, FALSE); - curl_setopt ($curl, CURLOPT_WRITEFUNCTION, 'timthumb::curlWrite'); - @curl_setopt ($curl, CURLOPT_FOLLOWLOCATION, true); - @curl_setopt ($curl, CURLOPT_MAXREDIRS, 10); - - $curlResult = curl_exec($curl); - fclose(self::$curlFH); - $httpStatus = curl_getinfo($curl, CURLINFO_HTTP_CODE); - if($httpStatus == 404){ - $this->set404(); - } - if($curlResult){ - curl_close($curl); - return true; - } else { - $this->lastURLError = curl_error($curl); - curl_close($curl); - return false; - } - } else { - $img = @file_get_contents ($url); - if($img === false){ - $err = error_get_last(); - if(is_array($err) && $err['message']){ - $this->lastURLError = $err['message']; - } else { - $this->lastURLError = $err; - } - if(preg_match('/404/', $this->lastURLError)){ - $this->set404(); - } - - return false; - } - if(! file_put_contents($tempfile, $img)){ - $this->error("Could not write to $tempfile."); - return false; - } - return true; - } - - } - protected function serveImg($file){ - $s = getimagesize($file); - if(! ($s && $s['mime'])){ - return false; - } - header ('Content-Type: ' . $s['mime']); - header ('Content-Length: ' . filesize($file) ); - header ('Cache-Control: no-store, no-cache, must-revalidate, max-age=0'); - header ("Pragma: no-cache"); - $bytes = @readfile($file); - if($bytes > 0){ - return true; - } - $content = @file_get_contents ($file); - if ($content != FALSE){ - echo $content; - return true; - } - return false; - - } - protected function set404(){ - $this->is404 = true; - } - protected function is404(){ - return $this->is404; - } -} diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/uninstall.php --- a/wp/wp-content/plugins/codecanyon-3027163-content-timeline-responsive-wordpress-plugin/uninstall.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -base_prefix . 'ctimelines'; -$wpdb->query( "DROP TABLE $sliders_table" ); - -?> \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/page-columnist/img/log.png Binary file wp/wp-content/plugins/page-columnist/img/log.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/page-columnist/img/move-col.png Binary file wp/wp-content/plugins/page-columnist/img/move-col.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/page-columnist/img/spin-button.png Binary file wp/wp-content/plugins/page-columnist/img/spin-button.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/page-columnist/img/spin-down.png Binary file wp/wp-content/plugins/page-columnist/img/spin-down.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/page-columnist/img/spin-up.png Binary file wp/wp-content/plugins/page-columnist/img/spin-up.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/page-columnist/img/vcalendar.png Binary file wp/wp-content/plugins/page-columnist/img/vcalendar.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/page-columnist/jquery.spin.js --- a/wp/wp-content/plugins/page-columnist/jquery.spin.js Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,79 +0,0 @@ -/** - * jquery.spin-button - * (c) 2008 Semooh (http://semooh.jp/) - * - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - **/ -(function($){ - $.fn.extend({ - spin: function(opt){ - return this.each(function(){ - opt = $.extend({ - imageBasePath: '/img/spin/', - spinBtnImage: 'spin-button.png?v='+Math.random(), //IE fix - spinUpImage: 'spin-up.png?v='+Math.random(), //IE fix - spinDownImage: 'spin-down.png?v='+Math.random(), //IE fix - interval: 1, - max: null, - min: null, - timeInterval: 300, - timeBlink: 100 - }, opt || {}); - - var txt = $(this); - - var spinBtnImage = opt.imageBasePath+opt.spinBtnImage; - var btnSpin = new Image(); - $(btnSpin).load(function(){ btn.css({width: btnSpin.width+'px'}); }); //IE fix - btnSpin.src = spinBtnImage; - - var spinUpImage = opt.imageBasePath+opt.spinUpImage; - var btnSpinUp = new Image(); - btnSpinUp.src = spinUpImage; - - var spinDownImage = opt.imageBasePath+opt.spinDownImage; - var btnSpinDown = new Image(); - btnSpinDown.src = spinDownImage; - - var btn = $(document.createElement('img')); - btn.attr('src', spinBtnImage); - btn.css({cursor: 'pointer', verticalAlign: 'bottom', padding: 0, margin: 0 }); - txt.after(btn); - txt.css({marginRight:0, paddingRight:0}); - - - function spin(vector){ - var val = txt.val(); - if(!isNaN(val)){ - val = parseFloat(val) + (vector*opt.interval); - if(opt.min!=null && valopt.max) val=opt.max; - if(val != txt.val()){ - txt.val(val); - txt.change(); - src = (vector > 0 ? spinUpImage : spinDownImage); - btn.attr('src', src); - if(opt.timeBlink pos ? 1 : -1); - (function(){ - spin(vector); - var tk = setTimeout(arguments.callee, opt.timeInterval); - $(document).one('mouseup', function(){ - clearTimeout(tk); btn.attr('src', spinBtnImage); - }); - })(); - return false; - }); - }); - } - }); -})(jQuery); diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/page-columnist/license.txt --- a/wp/wp-content/plugins/page-columnist/license.txt Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,280 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 675 Mass Ave, Cambridge, MA 02139, USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/page-columnist/page-columnist-assistance.css --- a/wp/wp-content/plugins/page-columnist/page-columnist-assistance.css Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,169 +0,0 @@ - -#cspc-assist-bar { - position: fixed; - top:-36px;left:0; - width: 100%; - height: 16px; - background:transparant; - z-index: 1002; - font-family:Arial,Verdana,Lucida,serif,sans !important; - font-size:12px !important; - font-weight: bold !important; - line-height:21px !important; -} - -#cspc-assist-bar-content { - width: 100%; - height: 36px; - background-color: #68BFEF; - background-color: #FFD100; - filter:alpha(opacity=85); - opacity:0.85; - border-bottom: solid 1px #797979; - overflow: hidden; -} - -#cspc-assist-bar-content input { - margin: 0px; - margin-right: 5px; - border:1px solid #383838 !important; - padding: 1px 0; - font-family:Arial,Verdana,Lucida,serif,sans !important; -} - -#cspc-assist-bar-content strong a, #cspc-assist-bar-content strong a:hover { color: #0066CC !important; } - -#cspc-assist-bar-content img { - border: 0px none; -} - -#cspc-assist-bar-content label { - color:#000; - font-weight:bold; - font-size:12px; - margin:0; - padding:0; -} -*:first-child + html #cspc-assist-bar-content input[type='checkbox']{ background-color: transparent !important; border: 0px none !important; } -#cspc-assist-bar-content input { - background-color: #fff !important; - color: #000 !important; - font-size: 12px !important; - font-weight: normal !important; -} -#cspc-assist-bar-content input + label { cursor: pointer; } - -#cspc-assist-bar-content .cspc-section { - float: left; - margin-top: 8px; - padding: 0px 8px 8px 8px; - border-right: 1px dotted #944; - text-align:left !important; -} - -#cspc-assist-bar-content .cspc-widget { - float:left; - border: 1px solid transparent; - padding: 4px; - width: 64px; - height: 64px; - cursor: move; -} - -#cspc-assist-bar-content .cspc-widget:hover { - border: solid 1px #444; - -moz-border-radius: 12px; - -webkit-border-radius: 12px; - -khtml-border-radius: 12px; - border-radius: 12px; - background-color: #FF4200; - background-color:#FF713F; -} - -.cspc-button { - color: #000; - border: solid 1px #888; - padding: 2px 10px; - -moz-border-radius: 8px; - -webkit-border-radius: 8px; - -khtml-border-radius: 8px; - border-radius: 8px; - background-color: #eee; -} - -.cspc-button:hover { - color: #f33; - border-color: #444; -} - -.cscp-widget-calendar { background: transparent url(img/vcalendar.png) no-repeat 4px 4px; } -.cscp-widget-stats { background: transparent url(img/log.png) no-repeat 4px 4px; } - -#cspc-assist-bar-expander { - bottom: 0px; - height: 16px; - width: 250px; - margin: 0px auto; - background-color: #FFD100; - -moz-border-radius: 0 0 12px 12px; - -webkit-border-bottom-right-radius: 12px; - -webkit-border-bottom-left-radius: 12px; - -khtml-border-bottom-right-radius: 12px; - -khtml-border-bottom-left-radius: 12px; - border-bottom-right-radius: 12px; - border-bottom-left-radius: 12px; - border-color: #797979; - border-style:solid; - border-width:0 1px 1px 1px; - color: #333; - font-size: 12px; - font-weight: bold; - padding: 0 10px 5px; - cursor: pointer; - text-align: center; -} - -.cspc-assist-col { - position:absolute; - background-color: #68BFEF; - background-color: #00BCFF; - color: #000; - border: 0px none; - opacity:0.75; - filter:alpha(opacity=75)!important; - z-index:1000; - text-align: left; -} -.cspc-assist-col .cspc-dimension { - position: absolute; - background-color: #fff; - border: solid 1px #333; - padding: 2px; - z-index: 1003; - font-size: 11px; - margin-top:2px; - margin-left:2px; -} - -.cspc-assist-col-locked { - background-color: #f00 !important; - filter:alpha(opacity=75) !important; - opacity:0.75 !important; -} - -.cspc-assist-spacer { - position:absolute; - background: #FFD100 url(img/move-col.png) no-repeat center top; - filter:alpha(opacity=75); - opacity:0.75; - z-index:1001; - cursor: move; -} - -.cspc-assist-spacer-active { - background: #FF8181 url(img/move-col.png) no-repeat center top; - filter:alpha(opacity=75); -} - - -.cspc-readonly-text { color: #999 !important; cursor: default !important; } \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/page-columnist/page-columnist-assistance.js --- a/wp/wp-content/plugins/page-columnist/page-columnist-assistance.js Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,240 +0,0 @@ - -(function($) { - - //jQuery UI 1.5.2 doesn't support "option" as getter/setter, so we have to apply a hotfix instead - var needs_jquery_hotfix = (($.ui.version === undefined) || (parseInt($.ui.version.split('.')[1]) < 6)); - if (needs_jquery_hotfix) { - $.extend($.ui.draggable.prototype, { - option: function(key, value) { - if (value === undefined) { - return this.options[key]; - } - if (key == 'containment') { - this.containment = value; - } - else{ - this.options[key] = value; - } - } - }); - $.extend($.ui.draggable, { - getter : 'option' - }); - } - - //extend jQuery with pageColumnist object - $.fn.extend({ - pageColumnist: function() { - var self = $(this); - - self.box = function(elem) { - var box = $(elem).offset(); - box.width = $(elem).width(); - box.height = $(elem).height(); - return box; - } - - self.update_info = function(i, elem) { - var b = self.box(self.columns[i]); - var o = self.box(self); - $(elem).css({top: b.top+'px', left: b.left+3+'px', width: '50px'}); - //changed to extended data info - $(elem).find('b').html(Math.round(parseFloat($(self.columns[i]).attr('data')) * 100.0) / 100.0); - $(elem).find('span').html(b.width); - } - - self.update_spacer = function(i, elem) { - var b1 = self.box(self.columns[i]); - var b2 = self.box(self.columns[i+1]); - $(elem).css({top: b1.top+'px', left: b1.left+b1.width+'px', width: b2.left - (b1.left+b1.width)+'px', height: b1.height+'px' }); - } - - self.recalc_containments = function(i, elem) { - var b1 = self.box(self.columns[i]); - var b2 = self.box(self.columns[i+1]); - var body = self.box($('body')); - self.containments[i] = [b1.left+50, 0, b2.left+b2.width-50-self.box(elem).width, body.height] - } - - self.adjust_columns = function(spacer) { - var idx = $(spacer).draggable('option', 'colidx'); - var perc = $(spacer).draggable('option', 'initial_perc'); - var s = self.box(spacer); - var b1 = self.box(self.columns[idx]); - var b2 = self.box(self.columns[idx+1]); - var main = self.box(self); - //reset affected columns - var w = '0px'; - $(self.columns[idx]).css({width: w}); - $(self.columns[idx+1]).css({width: w}); - //calculate new width - w = Math.round((s.left - b1.left) * 100.0) / main.width; - $(self.columns[idx]).css({ width: w + '%'}).attr('data', w); - b1 = self.box(self.columns[idx]); - w = perc - w; - $(self.columns[idx+1]).css({ width: w + '%'}).attr('data', w); - self.make_equal_height(); - } - - self.make_equal_height = function() { - var h = 0; - $(self.columns).each(function(i, elem) { h = Math.max(h, $(elem).height()); }); - $('#cscp_ghost').css({'height' : h+'px'}); - $('.cspc-assist-spacer').css({'height' : h+'px'}); - } - - self.columns = $('.cspc-column', self); - self.containments = []; - - $('body').prepend('
    '); - $('#cscp_ghost').css(self.box(self)).hide(); - for (var i=0; i %
    ( px)'); - if (i > 0) { - $('body').append('
    '); - self.containments.push([0,0,0,0]); - } - } - $('.cspc_assist_col_info, .cspc-assist-spacer').css({position: 'absolute', 'z-index': 1001}).hide(); - self.spacer = $('.cspc-assist-spacer'); - $('.cspc-assist-spacer').each(self.recalc_containments); - - - $('div.cspc_assist_col_info').css({ position: 'absolute', 'z-index': 1000, overflow:'hidden', color: '#000', 'background-color': '#fff', border: 'solid 1px black', padding: '3px', 'margin-top': '3px'}).each(self.update_info); - $('div.cspc-assist-spacer').each(self.update_spacer).each(function(i,e) { - var b = self.box(self); - var x = needs_jquery_hotfix ? {} : { containment : self.containments[i] }; - //TODO: containment is not always valid, to be changed in later versions - $(e).draggable($.extend(x,{ - axis: 'x', - colidx: i, - /* containment: [b.left+20, b.top, b.left+b.width-20, b.top+b.height], //didn't work for jquery.ui < 1.7.0, subject of later workarrounds */ - start: function(event, ui){ - try{ - var idx = $(event.target).draggable('option', 'colidx'); - var b1 = self.box(self.columns[idx]); - var b2 = self.box(self.columns[idx+1]); - $(self.spacer).each(function(i, elem) { - if(i!=idx) - $(elem).draggable('disable').css('z-index', 999); - else - $(elem).addClass('cspc-assist-spacer-active'); - }); - if(needs_jquery_hotfix) $(event.target).draggable('option', 'containment', self.containments[idx]); - $(event.target).draggable('option', 'initial_perc', parseFloat($(self.columns[idx]).attr('data')) + parseFloat($(self.columns[idx+1]).attr('data'))); - //$(event.target).draggable('option', 'initial_perc', parseFloat($(self.columns[idx]).css('width')) + parseFloat($(self.columns[idx+1]).css('width'))); - } - catch(e) { - } - }, - drag: function(event, ui) { - try{ - self.adjust_columns(event.target); - $('div.cspc_assist_col_info').each(self.update_info); - }catch(e) { - } - }, - stop: function(event, ui){ - $(self.spacer).each(function(j, elem) { $(elem).draggable('enable').css('z-index', 1001).removeClass('cspc-assist-spacer-active'); }); - try{ - self.adjust_columns(event.target); - $('div.cspc_assist_col_info').each(self.update_info); - }catch(e) { - } - $(self.spacer).each(self.recalc_containments); - } - })); - }); - - //keep tracking the resize of window - $(window).resize(function() { - $('#cscp_ghost').css(self.box(self)) - $('div.cspc_assist_col_info').each(self.update_info); - $('div.cspc-assist-spacer').each(self.update_spacer); - self.make_equal_height(); - }); - - $('#cspc-col-spacing').change(function() { - if (self.columns.length == 0) return; - var space = parseFloat($(this).val()); - var base = 100.0; - var perc = ((base - (self.columns.length - 1) * space ) / self.columns.length); - if ($.browser.msie) { - $(self.columns).each(function(i, elem) { - $(elem).css({ width: '0.001%'}); - }); - space = space * 0.66 ; //because IE is unable to calculate the sums correctly, we have to trick it little bit - } - for (var i=0; i\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Poedit-Language: German\n" -"X-Poedit-Country: GERMANY\n" -"X-Poedit-SourceCharset: utf-8\n" -"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n" -"X-Poedit-Basepath: \n" -"X-Poedit-Bookmarks: \n" -"X-Poedit-SearchPath-0: .\n" -"X-Textdomain-Support: yes" - -#: page-columnist.php:590 -#@ page-columnist -msgid "nextpage" -msgstr "Seitenumbruch" - -#: page-columnist.php:453 -#@ page-columnist -msgid "WordPress - Next Page (default)" -msgstr "WordPress - Nächste Seite (Standard)" - -#: page-columnist.php:454 -#@ page-columnist -msgid "Ordinary Plain Page" -msgstr "Gewöhnliche Statische Seite" - -#: page-columnist.php:455 -#@ page-columnist -msgid "Every Sub Page as Column" -msgstr "jede Teil-Seite als Spalte" - -#: page-columnist.php:456 -#@ page-columnist -msgid "First Sub Page as Header" -msgstr "Erste Teil-Seite als Kopfzeile" - -#: page-columnist.php:457 -#@ page-columnist -msgid "Last Sub Page as Footer" -msgstr "Letzte Teil-Seite als Fußzeile" - -#: page-columnist.php:458 -#@ page-columnist -msgid "Interior as Columns" -msgstr "das Innere als Spalten" - -#: page-columnist.php:590 -#@ page-columnist -msgid "insert Page break" -msgstr "Seitenumbruch einfügen" - -#: page-columnist.php:533 -#@ page-columnist -msgid "Page Columnist • Assistance" -msgstr "Page Columnist • Assistent" - -#: page-columnist.php:525 -#@ page-columnist -msgid "% spacing" -msgstr "% Spaltenabstand" - -#: page-columnist.php:527 -#@ page-columnist -msgid "default spacing" -msgstr "Standard-Abstand" - -#: page-columnist.php:529 -#@ page-columnist -msgid "save changes" -msgstr "Änderungen speichern" - -#: page-columnist.php:521 -#@ page-columnist -msgid "enable column resizing" -msgstr "Spaltenbreiten modifizieren" - -#: page-columnist.php:682 -#@ page-columnist -msgid "You do not have the permission to edit this page." -msgstr "Sie haben nicht die erforderliche Berechtigung zum Bearbeiten dieser Seite." - -#: page-columnist.php:694 -#@ page-columnist -msgid "% column default spacing" -msgstr "% Standard-Spaltenabstand" - -#: page-columnist.php:86 -#@ page-columnist -msgid "* content missing" -msgstr "* Inhalt fehlt" - -#: page-columnist.php:481 -#: page-columnist.php:482 -#@ page-columnist -msgid "Page Columnist" -msgstr "Page Columnist" - -#: page-columnist.php:713 -#@ page-columnist -msgid "spacing:" -msgstr "Abstand:" - -#: page-columnist.php:716 -#@ page-columnist -msgid "columns:" -msgstr "Spalten:" - -#: page-columnist.php:724 -#@ page-columnist -msgid "overflow:" -msgstr "Überlauf:" - -#: page-columnist.php:726 -#@ page-columnist -msgid "hide too much columns" -msgstr "Spalten ausblenden" - -#: page-columnist.php:727 -#@ page-columnist -msgid "generate virtual pages" -msgstr "virtuelle Seiten erzeugen" - -#: page-columnist.php:745 -#@ page-columnist -msgid "enable Assistance at Preview" -msgstr "aktiviere Unterstützung bei Vorschau" - -#: page-columnist.php:601 -#@ page-columnist -msgid "Cols" -msgstr "Spalten" - -#: page-columnist.php:736 -#@ page-columnist -msgid "render flat single content" -msgstr "linear darstellen" - -#: page-columnist.php:732 -#@ page-columnist -msgid "at overview pages:" -msgstr "in Artikel Übersichten:" - -#: page-columnist.php:379 -#@ page-columnist -msgid "Plugin can not be activated." -msgstr "Plugin kann nicht aktiviert werden." - -#: page-columnist.php:379 -#@ page-columnist -msgid "required" -msgstr "erforderlich" - -#: page-columnist.php:379 -#@ page-columnist -msgid "actual" -msgstr "tatsächlich" - -#: page-columnist.php:735 -#@ page-columnist -msgid "pagination" -msgstr "Pagination" - -#: page-columnist.php:734 -#@ page-columnist -msgid "same as single pages" -msgstr "wie einzelne Seiten" - diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/page-columnist/page-columnist-it_IT.mo Binary file wp/wp-content/plugins/page-columnist/page-columnist-it_IT.mo has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/page-columnist/page-columnist-it_IT.po --- a/wp/wp-content/plugins/page-columnist/page-columnist-it_IT.po Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,157 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: Page Columnist v1.0-alpha\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: \n" -"PO-Revision-Date: 2009-02-02 12:51+0100\n" -"Last-Translator: Luca Realdi \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Poedit-Language: German\n" -"X-Poedit-Country: GERMANY\n" -"X-Poedit-SourceCharset: utf-8\n" -"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n" -"X-Poedit-Basepath: .\n" -"X-Poedit-Bookmarks: \n" -"X-Poedit-SearchPath-0: .\n" -"X-Textdomain-Support: yes" - -#: page-columnist.php:585 -#@ page-columnist -msgid "nextpage" -msgstr "interruzione di pagina" - -#: page-columnist.php:448 -#@ page-columnist -msgid "WordPress - Next Page (default)" -msgstr "Interruzioni Wordpress Standard" - -#: page-columnist.php:449 -#@ page-columnist -msgid "Ordinary Plain Page" -msgstr "Pagina ordinaria senza interruzioni" - -#: page-columnist.php:450 -#@ page-columnist -msgid "Every Sub Page as Column" -msgstr "Ogni sottopagina come colonna" - -#: page-columnist.php:451 -#@ page-columnist -msgid "First Sub Page as Header" -msgstr "Prima sottopagina come testata" - -#: page-columnist.php:452 -#@ page-columnist -msgid "Last Sub Page as Footer" -msgstr "Ultima sottopagina come Piede" - -#: page-columnist.php:453 -#@ page-columnist -msgid "Interior as Columns" -msgstr "Sottopagine interne come colonne" - -#: page-columnist.php:585 -#@ page-columnist -msgid "insert Page break" -msgstr "Inserisci un'interruzione di pagina" - -#: page-columnist.php:528 -#@ page-columnist -msgid "Page Columnist • Assistance" -msgstr "Page Columnist • Assistente" - -#: page-columnist.php:520 -#@ page-columnist -msgid "% spacing" -msgstr "% margine" - -#: page-columnist.php:522 -#@ page-columnist -msgid "default spacing" -msgstr "Margine di default" - -#: page-columnist.php:524 -#@ page-columnist -msgid "save changes" -msgstr "Salva" - -#: page-columnist.php:516 -#@ page-columnist -msgid "enable column resizing" -msgstr "Abilita il ridimensionamento delle colonne" - -#: page-columnist.php:677 -#@ page-columnist -msgid "You do not have the permission to edit this page." -msgstr "Non hai i privilegi per modificare questa pagina." - -#: page-columnist.php:689 -#@ page-columnist -msgid "% column default spacing" -msgstr "% margine di colonna di default" - -#: page-columnist.php:59 -#@ page-columnist -msgid "* content missing" -msgstr "* senza contenuto" - -#: page-columnist.php:476 -#: page-columnist.php:477 -#@ page-columnist -msgid "Page Columnist" -msgstr "Page Columnist" - -#: page-columnist.php:708 -#@ page-columnist -msgid "spacing:" -msgstr "Margine:" - -#: page-columnist.php:711 -#@ page-columnist -msgid "columns:" -msgstr "Colonne:" - -#: page-columnist.php:719 -#@ page-columnist -msgid "overflow:" -msgstr "Overflow:" - -#: page-columnist.php:721 -#@ page-columnist -msgid "hide too much columns" -msgstr "Nascondi troppe colonne" - -#: page-columnist.php:722 -#@ page-columnist -msgid "generate virtual pages" -msgstr "Genera pagine virtuali" - -#: page-columnist.php:739 -#@ page-columnist -msgid "enable Assistance at Preview" -msgstr "Abilita Assistente in Anteprima" - -#: page-columnist.php:596 -#@ page-columnist -msgid "Cols" -msgstr "Colonne" - -#: page-columnist.php:727 -#@ page-columnist -msgid "at overview pages:" -msgstr "" - -#: page-columnist.php:729 -#@ page-columnist -msgid "same as single pages" -msgstr "" - -#: page-columnist.php:730 -#@ page-columnist -msgid "render flat single content" -msgstr "" - diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/page-columnist/page-columnist-pl_PL.mo Binary file wp/wp-content/plugins/page-columnist/page-columnist-pl_PL.mo has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/page-columnist/page-columnist-pl_PL.po --- a/wp/wp-content/plugins/page-columnist/page-columnist-pl_PL.po Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,157 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: Page Columnist v1.0-alpha\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: \n" -"PO-Revision-Date: 2009-02-23 01:31+0100\n" -"Last-Translator: Jacek Tyc \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Poedit-Language: Polish\n" -"X-Poedit-Country: POLAND\n" -"X-Poedit-SourceCharset: utf-8\n" -"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n" -"X-Poedit-Basepath: .\n" -"X-Poedit-Bookmarks: \n" -"X-Poedit-SearchPath-0: .\n" -"X-Textdomain-Support: yes" - -#: page-columnist.php:585 -#@ page-columnist -msgid "nextpage" -msgstr "nastÄ™pna strona" - -#: page-columnist.php:448 -#@ page-columnist -msgid "WordPress - Next Page (default)" -msgstr "WordPress- NastÄ™pna Str (Standard)" - -#: page-columnist.php:449 -#@ page-columnist -msgid "Ordinary Plain Page" -msgstr "Strona bez podziaÅ‚u" - -#: page-columnist.php:450 -#@ page-columnist -msgid "Every Sub Page as Column" -msgstr "Każda Podstrona jako Kolumna" - -#: page-columnist.php:451 -#@ page-columnist -msgid "First Sub Page as Header" -msgstr "Pierwsza Podstrona jako Nagłówek" - -#: page-columnist.php:452 -#@ page-columnist -msgid "Last Sub Page as Footer" -msgstr "Ostatnia Podstrona jako Stopka" - -#: page-columnist.php:453 -#@ page-columnist -msgid "Interior as Columns" -msgstr "Åšrodkowe jako kolumny" - -#: page-columnist.php:585 -#@ page-columnist -msgid "insert Page break" -msgstr "wstaw podziaÅ‚ Strony" - -#: page-columnist.php:528 -#@ page-columnist -msgid "Page Columnist • Assistance" -msgstr "Page Columnist • Asystent" - -#: page-columnist.php:520 -#@ page-columnist -msgid "% spacing" -msgstr "% odstÄ™p" - -#: page-columnist.php:522 -#@ page-columnist -msgid "default spacing" -msgstr "DomyÅ›lny odstÄ™p" - -#: page-columnist.php:524 -#@ page-columnist -msgid "save changes" -msgstr "zapisz zmiany" - -#: page-columnist.php:516 -#@ page-columnist -msgid "enable column resizing" -msgstr "włącz zmianÄ™ rozmiaru kolumn" - -#: page-columnist.php:677 -#@ page-columnist -msgid "You do not have the permission to edit this page." -msgstr "Nie posiadasz uprawnieÅ„ do edycji tej strony" - -#: page-columnist.php:689 -#@ page-columnist -msgid "% column default spacing" -msgstr "% domyÅ›lny odstÄ™p kolumn" - -#: page-columnist.php:59 -#@ page-columnist -msgid "* content missing" -msgstr "* brak zawartoÅ›ci" - -#: page-columnist.php:476 -#: page-columnist.php:477 -#@ page-columnist -msgid "Page Columnist" -msgstr "Page Columnist" - -#: page-columnist.php:708 -#@ page-columnist -msgid "spacing:" -msgstr "odstÄ™p:" - -#: page-columnist.php:711 -#@ page-columnist -msgid "columns:" -msgstr "kolumny:" - -#: page-columnist.php:719 -#@ page-columnist -msgid "overflow:" -msgstr "nadmiar:" - -#: page-columnist.php:721 -#@ page-columnist -msgid "hide too much columns" -msgstr "ukryj nadmiar kolumn" - -#: page-columnist.php:722 -#@ page-columnist -msgid "generate virtual pages" -msgstr "Generuj wirtualne strony" - -#: page-columnist.php:739 -#@ page-columnist -msgid "enable Assistance at Preview" -msgstr "Włącz Asystenta w PodglÄ…dzie strony" - -#: page-columnist.php:596 -#@ page-columnist -msgid "Cols" -msgstr "Kolumny" - -#: page-columnist.php:727 -#@ page-columnist -msgid "at overview pages:" -msgstr "" - -#: page-columnist.php:729 -#@ page-columnist -msgid "same as single pages" -msgstr "" - -#: page-columnist.php:730 -#@ page-columnist -msgid "render flat single content" -msgstr "" - diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/page-columnist/page-columnist.php --- a/wp/wp-content/plugins/page-columnist/page-columnist.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,830 +0,0 @@ -_get_version_errors(); - if (is_array($version_error) && count($version_error) != 0) { - $row = $wpdb->get_row( $wpdb->prepare( "SELECT option_value FROM $wpdb->options WHERE option_name = %s LIMIT 1", 'active_plugins' ) ); - if ( is_object( $row ) ) { - $current = maybe_unserialize( $row->option_value ); - if (array_search($page_columnist_plug->basename, $current) !== false) { - array_splice($current, array_search($page_columnist_plug->basename, $current), 1 ); - update_option('active_plugins', $current); - } - } - exit(); - } - } - if (!get_option('cspc_page_columnist')) - update_option('cspc_page_columnist', get_option('cspc_page_columnist', $page_columnist_plug->defaults)); -} -function cspc_on_deactivate_plugin() { - //currently empty -} -register_activation_hook(plugin_basename(__FILE__), 'cspc_on_activate_plugin'); -register_deactivation_hook(plugin_basename(__FILE__), 'cspc_on_deactivate_plugin'); - - -class Page_columnist_page_transition { - - function Page_columnist_page_transition(&$plugin, $page_id = false) { - $this->plugin = $plugin; //reference to owner plugin - $this->transition = $this->plugin->page_default_trans; - $this->data = array(); - $this->data_keys = array('spacing', 'columns', 'overflow', 'multiposts'); - $this->padding = ''.__('* content missing', $this->plugin->textdomain).''; - if ($page_id) $this->load($page_id); - else $this->page_id = 0; - } - - function load($page_id) { - $this->page_id = ($page_id ? $page_id : 0); - $this->transition = $this->plugin->page_default_trans; - $this->data = array(); - $res = explode('|', get_post_meta($this->page_id, '_cspc-page-transitions', true)); - $num = count($res); - if ($num > 0) { - if (in_array($res[0], array_keys($this->plugin->page_transitions))) { - $this->transition = $res[0]; - if ($num > 1) { - $this->data = unserialize($res[1]); - } - } - } - } - - function save() { - if ($this->page_id > 0) { - $value = $this->transition.'|'.serialize($this->data); - update_post_meta($this->page_id, '_cspc-page-transitions', $value); - } - } - - function update_and_save() { - if (isset($_POST['cspc-page-transition']) && in_array($_POST['cspc-page-transition'], array_keys($this->plugin->page_transitions))) { - $this->transition = $_POST['cspc-page-transition']; - } - if (isset($_POST['cspc-count-columns'])) { - $this->data['columns'] = (int)$_POST['cspc-count-columns']; - } - if (isset($_POST['cspc-overflow-paging'])) { - $this->data['overflow'] = $_POST['cspc-overflow-paging']; - if($this->data['overflow'] != 'hidden' && $this->data['overflow'] != 'virtual') { - $this->data['overflow'] = 'hidden'; - } - } - if (isset($_POST['cspc-multiposts-paging']) && in_array($_POST['cspc-multiposts-paging'], $this->plugin->multiposts_style)) { - $this->data['multiposts'] = $_POST['cspc-multiposts-paging']; - } - if (!isset($this->data['distribution']) || !is_array($this->data['distribution'])) $this->data['distribution'] = array(); - $this->save(); - } - - - function spacing() { - return (isset($this->data['spacing']) ? (float)$this->data['spacing'] : (float)$this->plugin->options->spacing); - } - - function columns() { - return (isset($this->data['columns']) ? (int)$this->data['columns'] : 2); - } - - function overflow() { - return (isset($this->data['overflow']) ? $this->data['overflow'] : 'hidden'); - } - - function multiposts() { - return (isset($this->data['multiposts']) ? $this->data['multiposts'] : 'same'); - } - - function execute(&$pages) { - return call_user_func(array(&$this, '_exec_'.str_replace('-','_',$this->transition)), $pages); - } - - function _padding_pages($needed, &$pages) { - $res = array(); - while(count($pages) % $needed != 0) $pages[] = $this->padding; //padding count of sub pages - if ($this->overflow() == 'hidden') { - $res[] = array_slice($pages, 0, $needed); - }else{ - $res = array_chunk($pages, $needed); - } - return $res; - } - - function _get_distribution($num, $remaining) { - $res = array(); - if (!is_array($this->data['distribution']) || !isset($this->data['distribution'][$num])) { - $perc = $remaining / $num; - for ($i=0; $i<$num; $i++) $res[] = $perc; - } - else{ - $sum = 0.0; - for ($i=0; $i<$num; $i++) $sum += (float)$this->data['distribution'][$num][$i]; - for ($i=0; $i<$num; $i++) { - $res[]= ($remaining * ((float)$this->data['distribution'][$num][$i] / $sum)); - } - } - return $res; - } - - function _columnize_pages($num, $pages) { - $res = ''; - $base = 100.0; - $spacing = $this->spacing(); - $remaining = ($base - ($num - 1) * $spacing); - $dist = $this->_get_distribution($num, $remaining); - $lorr = 'left'; - global $wp_locale; - if ($wp_locale->text_direction == 'rtl') { - $lorr = 'right'; //make it work at RTL languages - } - for ($i=0; $i<$num; $i++) { - $page = $pages[$i]; - $perc = $dist[$i]; - if ($this->plugin->is_MSIE()) { - //IE is not able to calculate column sizes well, several 100% sums leads to get the last column display wrapped under the first - //in several cases (mostly where a periodic fraction of 1/3 or 1/6 occures) , IE seems to reach by internal rounding errors more than 100% of available width - $margin_left_i = ($i==0 ? 0 : $spacing * 0.66); - } - else{ - $margin_left_i = ($i==0 ? 0 : $spacing); - } - $extend = $this->plugin->is_page_preview() ? ' data="'.$perc.'"' : ''; - $res .= "
    "; - if (has_filter('the_content', 'wpautop') && !preg_match('/^\s*
    \s*$/', $page)) $res .= '

    '; - $res .= '
    '; - } - return $res; - } - - function _columnize_fullsize($page, $clearleft = false) { - if (empty($page)) return ''; - $res = ($clearleft ? ''; - $out[] = $res; - } - return $out; - } - - function _exec_cspc_trans_footer(&$pages) { - $work = $this->_padding_pages($this->columns() + 1, $pages); - $out = array(); - for ($i=0; $i 0 ? array_slice($work[$i],0,$num) : array()); - $res = "
    transition-wrap\" class=\"cspc-wrapper\">"; - $res .= '
    '; - $res .= $this->_columnize_pages($num, $work[$i]); - $res .= '
    '; - $res .= $this->_columnize_fullsize($last, true); - $res .= '
    '; - $out[] = $res; - } - return $out; - } - - function _exec_cspc_trans_interior(&$pages) { - $work = $this->_padding_pages($this->columns() + 2, $pages); - $out = array(); - for ($i=0; $i 0 ? end($work[$i]) : ''); - $work[$i] = ($num > 0 ? array_slice($work[$i],0,$num) : array()); - $res = "
    transition-wrap\" class=\"cspc-wrapper\">"; - $res .= $this->_columnize_fullsize($top); - $res .= '
    '; - $res .= $this->_columnize_pages($num, $work[$i]); - $res .= '
    '; - $res .= $this->_columnize_fullsize($last, true); - $res .= '
    '; - $out[] = $res; - } - return $out; - } -} - - -//page_columnist Plugin class -class Plugin_page_columnist { - - //initializes the whole plugin and enables the activation/deactivation handling - function Plugin_page_columnist() { - global $wp_version; - - $this->l10n_ready = false; - - //own plugin data - $this->basename = plugin_basename(__FILE__); - $this->url = WP_PLUGIN_URL.'/'.dirname($this->basename); - $this->textdomain = basename($this->basename); - $this->textdomain = substr($this->textdomain, 0, strrpos($this->textdomain, '.')); - $this->versions = new stdClass; - $this->versions->required = array( 'php' => '4.4.2', 'wp' => '2.7'); - $this->versions->found = array( 'php' => phpversion(), 'wp' => $wp_version); - $this->versions->above_27 = !version_compare($this->versions->found['wp'], '2.8alpha', '<'); - $this->do_resample_page = false; - $this->multiposts_style = array('flat', 'same', 'wp'); - - $this->page_default_trans = 'cspc-trans-wordpress'; - - $this->defaults = new stdClass; - $this->defaults->spacing = 3.0; - $this->defaults->preview_assistent = false; - - $this->options = get_option('cspc_page_columnist', $this->defaults); - $stored = get_object_vars($this->options); - $defaults = get_object_vars($this->defaults); - foreach($defaults as $key => $value) { - if (!isset($stored[$key])) $this->options->$key = $value; - } - - add_action('init', array(&$this, 'on_init')); - add_action('admin_init', array(&$this, 'on_admin_init')); - add_action('wp_head', array(&$this, 'on_wp_head')); - add_action('wp_footer', array(&$this, 'on_wp_footer')); - add_action('admin_head', array(&$this, 'on_admin_head')); - add_action('edit_page_form', array(&$this, 'on_extend_html_editor')); - add_action('edit_form_advanced', array(&$this, 'on_extend_html_editor')); - add_action('manage_pages_custom_column', array(&$this, 'on_manage_custom_column'), 10, 2); - add_action('manage_posts_custom_column', array(&$this, 'on_manage_custom_column'), 10, 2); - add_action('wp_insert_post', array(&$this, 'on_wp_insert_post'), 10, 2); - add_action('loop_start', array(&$this, 'on_loop_start'), 0 ); - add_action('the_post', array(&$this, 'on_the_post'), 0 ); - add_action('template_redirect', array(&$this, 'on_template_redirect')); - add_filter('mce_buttons', array(&$this, 'on_filter_mce_buttons')); - - $this->_display_version_errors(); - - //TODO: future development should be able to deal with removing the ugly wpautop algorithm - //remove_filter('the_content', 'wpautop'); - } - - function _get_version_errors() { - $res = array(); - foreach($this->versions->required as $key => $value) { - if (!version_compare($this->versions->found[$key], $value, '>=')) { - $res[strtoupper($key).' Version'] = array('required' => $value, 'found' => $this->versions->found[$key]); - } - } - return $res; - } - - function _display_version_errors() { - if (isset($_GET['action']) && isset($_GET['plugin']) && ($_GET['action'] == 'error_scrape') && ($_GET['plugin'] == $this->basename )) { - $this->setup_translation(); - $version_error = $this->_get_version_errors(); - if (count($version_error) != 0) { - echo ""; - echo ""; - foreach($version_error as $key => $value) { - echo ""; - } - echo "
    ".__('Plugin can not be activated.', $this->textdomain)." | ".__('required', $this->textdomain)." | ".__('actual', $this->textdomain)."
    $key >= ".$value['required']."".$value['found']."
    "; - } - } - } - - //load and setup the necessary translation files - function setup_translation() { - if (!$this->l10n_ready) { - $abs_rel_path = str_replace(ABSPATH, '', WP_PLUGIN_DIR.'/'.dirname($this->basename)); - $plugin_rel_path = dirname($this->basename); - load_plugin_textdomain($this->textdomain, $abs_rel_path, $plugin_rel_path); - $this->l10n_ready = true; - } - } - - //is the browser of current user IE ? - function is_MSIE() { - return preg_match('/msie/i', $_SERVER['HTTP_USER_AGENT']) && !preg_match('/opera/i', $_SERVER['HTTP_USER_AGENT']); - } - - //do we show a frontend page in preview mode ? - function is_page_preview() { - $id = (isset($_GET['preview_id']) ? (int)$_GET['preview_id'] : 0); - if ($id == 0 && isset($_GET['post_id'])) $id = (int)$_GET['post_id']; - if ($id == 0 && isset($_GET['page_id'])) $id = (int)$_GET['page_id']; - if ($id == 0 && isset($_GET['p'])) $id = (int)$_GET['p']; - $preview = (isset($_GET['preview']) ? $_GET['preview'] : ''); - if ($id > 0 && $preview == 'true' && $this->options->preview_assistent) { - global $wpdb; - $type = $wpdb->get_results("SELECT post_type FROM $wpdb->posts WHERE ID=$id"); - if (count($type) && ($type[0]->post_type == 'page' || $type[0]->post_type == 'post')){ - switch($type[0]->post_type) { - case 'post': - return current_user_can('edit_post', $id); - break; - case 'page': - return current_user_can('edit_page', $id); - break; - default: - return false; - break; - } - } - } - return false; - } - - //detects if we a currently render the posts or pages edit overview table page - function is_page_overview() { - global $pagenow; - return (is_admin() && ($pagenow == 'edit-pages.php' || $pagenow == 'edit.php')); - } - - //detects if we a currently render the posts or pages editor page - function is_page_editor() { - global $pagenow; - return (is_admin() && ( - ($pagenow == 'page.php') || ($pagenow == 'page-new.php') - || - ($pagenow == 'post.php') || ($pagenow == 'post-new.php') - ) - ); - } - - //gets called by WordPress action "init" after WordPress core is up and running - function on_init() { - //ensures the correct matching translation file gets loaded - $this->setup_translation(); - - $this->page_transitions = array( - 'cspc-trans-wordpress' => array('img-pos' => 0, 'text' => __('WordPress - Next Page (default)', $this->textdomain), 'default' => true), - 'cspc-trans-ordinary' => array('img-pos' => -16, 'text' => __('Ordinary Plain Page', $this->textdomain)), - 'cspc-trans-columns' => array('img-pos' => -32, 'text' => __('Every Sub Page as Column', $this->textdomain)), - 'cspc-trans-header' => array('img-pos' => -48, 'text' => __('First Sub Page as Header', $this->textdomain)), - 'cspc-trans-footer' => array('img-pos' => -64, 'text' => __('Last Sub Page as Footer', $this->textdomain)), - 'cspc-trans-interior' => array('img-pos' => -80, 'text' => __('Interior as Columns', $this->textdomain)), - ); - - if ($this->is_page_preview() && !defined('DOING_AJAX')) { - wp_enqueue_script('jquery-spin', $this->url.'/jquery.spin.js', array('jquery')); - wp_enqueue_script('cspc_page_columnist_assistance', $this->url.'/page-columnist-assistance.js', array('jquery', 'jquery-ui-draggable', 'jquery-spin')); - wp_enqueue_style('cspc_page_columnist_assistance', $this->url.'/page-columnist-assistance.css'); - } - - if(defined('DOING_AJAX')) { - add_action('wp_ajax_cspc_save_changes', array(&$this, 'on_ajax_save_changes')); - } - } - - //gets called by WordPress action "admin_init" to be able to setup correctly in backend mode - function on_admin_init() { - - if ($this->is_page_overview()) { - add_filter('manage_edit-pages_columns', array(&$this,'on_filter_manage_columns')); - add_filter('manage_posts_columns', array(&$this,'on_filter_manage_columns')); - } - - if ($this->is_page_editor()) { - add_meta_box('cspc-page-transitions', __('Page Columnist', $this->textdomain) , array(&$this, 'on_print_metabox_content_cspc_page_transitions'), 'page', 'side', 'core'); - add_meta_box('cspc-page-transitions', __('Page Columnist', $this->textdomain) , array(&$this, 'on_print_metabox_content_cspc_page_transitions'), 'post', 'side', 'core'); - wp_enqueue_script('jquery-spin', $this->url.'/jquery.spin.js', array('jquery')); - } - } - - //gets called by action "wp_head" to configure the preview assistance - function on_wp_head() { - if ($this->is_page_preview()) { - $id = (isset($_GET['preview_id']) ? (int)$_GET['preview_id'] : 0); - if ($id == 0 && isset($_GET['post_id'])) $id = (int)$_GET['post_id']; - if ($id == 0 && isset($_GET['page_id'])) $id = (int)$_GET['page_id']; - if ($id == 0 && isset($_GET['p'])) $id = (int)$_GET['p']; - $pt = new Page_columnist_page_transition($this, $id); - ?> - - is_page_preview()) { - $id = (isset($_GET['preview_id']) ? (int)$_GET['preview_id'] : 0); - if ($id == 0 && isset($_GET['post_id'])) $id = (int)$_GET['post_id']; - if ($id == 0 && isset($_GET['page_id'])) $id = (int)$_GET['page_id']; - if ($id == 0 && isset($_GET['p'])) $id = (int)$_GET['p']; - $pt = new Page_columnist_page_transition($this, $id); - ?> -
    -
    - -
    - -
    -
    - - -   - -   - textdomain); ?> -
    -
    -
    -
    textdomain); ?>
    -
    - is_page_overview() || $this->is_page_editor()) : ?> - - is_page_editor()) : ?> - - - is_page_editor()) { - if (!in_array('wp_page', $buttons)) { - if (!in_array('wp_more', $buttons)) { - $last = array_pop($buttons); - $buttons[] = "wp_page"; - $buttons[] = $last; - }else{ - $txt = implode('|', $buttons); - $txt = str_replace('wp_more|','wp_more|wp_page|', $txt); - $buttons = explode('|', $txt); - } - } - } - return $buttons; - } - - //insert nextpage button to HTML editor, if not already present there - function on_extend_html_editor() { - if ($this->is_page_editor()) : ?> - - textdomain); - return $columns; - } - - //add content to the new edit posts / pages overview column - function on_manage_custom_column($column_name, $id) { - if ($column_name == 'cspc-page-transition-col') { - $pt = new Page_columnist_page_transition($this, $id); - if ($pt->transition != 'cspc-trans-wordpress' && $pt->transition != 'cspc-trans-ordinary') { - echo "
    transition\">  (".$pt->columns().")
    "; - } - else{ - echo "
    transition\">  (-)
    "; - } - } - } - - //save the page transition mode setting of page/post, if something has been saved - function on_wp_insert_post($post_ID, $post) { - $my_id = ((isset($_POST['wp-preview']) && $_POST['wp-preview'] == 'dopreview') ? $_POST['post_ID'] : $post_ID); - $my_type = ((isset($_POST['wp-preview']) && $_POST['wp-preview'] == 'dopreview') ? $_POST['post_type'] : $post->post_type); - - switch($my_type) { - case 'post': - if(!current_user_can('edit_post', $my_id)) return; - break; - case 'page': - if (!current_user_can('edit_page', $my_id)) return; - break; - default: - return; - break; - } - - if (($my_type == 'page') || ($my_type == 'post')) { - - $pt = new Page_columnist_page_transition($this, $my_id); - $pt->update_and_save(); - - $this->options->preview_assistent = (isset($_POST['cspc-preview-assistent']) ? (bool)$_POST['cspc-preview-assistent'] : $this->defaults->preview_assistent); - $this->options->spacing = (isset($_POST['cspc-default-column-spacing']) ? (float)$_POST['cspc-default-column-spacing'] : $this->defaults->spacing); - update_option('cspc_page_columnist', $this->options); - } - } - - //save the changes the user made at preview assistent - function on_ajax_save_changes() { - $page_id = (int)$_POST['page_id']; - $spacing = (float)$_POST['spacing']; - $default_spacing = ($_POST['default_spacing'] == 'true' ? true : false); - - global $wpdb; - $type = $wpdb->get_results("SELECT post_type FROM $wpdb->posts WHERE ID=$page_id"); - if (count($type) && ($type[0]->post_type == 'page' || $type[0]->post_type == 'post')){ - $checked = false; - switch($type[0]->post_type) { - case 'post': - $checked = current_user_can('edit_post', $page_id); - break; - case 'page': - $checked = current_user_can('edit_page', $page_id); - break; - default: - $checked = false; - break; - } - if ($checked) { - $pt = new Page_columnist_page_transition($this, $page_id); - $pt->data['spacing'] = $spacing; - if (!is_array($pt->data['distribution'])) $pt->data['distribution'] = array(); - $pt->data['distribution'][$pt->columns()] = explode('|',$_POST['distribution']); - $pt->save(); - if ($default_spacing) { - $this->options->spacing = $spacing; - update_option('cspc_page_columnist', $this->options); - } - exit(); - } - } - header('Status: 404 Not Found'); - header('HTTP/1.1 404 Not Found'); - _e('You do not have the permission to edit this page.', $this->textdomain); - exit(); - } - - - //ouput the content of new one sidebar box at page/post editing - function on_print_metabox_content_cspc_page_transitions($data) { - $pt = new Page_columnist_page_transition($this, $data->ID); ?> -
    - - - - -
      -
    -
    -
    - - page_transitions as $type => $val) : ?> - - - -
    - transition) echo 'checked="checked"'; ?>/> - - -
    -
    - - - - - - - - - - - - versions->above_27) : ?> - - - - -
    textdomain); ?>spacing(); ?> %
    textdomain); ?> - - columns() == $i) echo 'checked="checked" '; ?>> - -
    textdomain); ?> - overflow() == 'hidden') echo 'checked="checked"'; ?> autocomplete="off">textdomain); ?>
    - overflow() == 'virtual') echo 'checked="checked"'; ?> autocomplete="off"/>textdomain); ?> -
    -
    textdomain); ?> - multiposts() == 'same') echo 'checked="checked"'; ?> autocomplete="off">textdomain); ?>
    - multiposts() == 'wp') echo 'checked="checked"'; ?> autocomplete="off"/>textdomain); ?>
    - multiposts() == 'flat') echo 'checked="checked"'; ?> autocomplete="off"/>textdomain); ?> -
    -
    -
    - - - - - -
    options->preview_assistent) echo 'checked="checked"'; ?>/>
    -
    - ID); - //user can change overview pages to support also columnization, default is off - if (!is_single()) { - switch($pt->multiposts()) { - case 'wp': - $pt->transition = $this->page_default_trans; - break; - case 'flat': - $pt->transition = 'cspc-trans-ordinary'; - break; - } - } - if($pt->transition == $this->page_default_trans) return; - $pages = $pt->execute($pages); - - if (count($pages) > 1) { - $multipage = 1; - $numpages = count($pages); - } - else{ - $multipage = 0; - $numpages = 1; - } - -/* - //TODO: future versions should check ugly invalid

    based at shortcode api if possible - if (has_filter('the_content', 'wpautop')) { - preg_match('/'.get_shortcode_regex().'(\s\s|)/', $pages[0],$hits); - var_dump($hits); - } -*/ - } - - //beginning WP 2.8 the order of how hooks been called have been change - //that's why the handling of resampling the page if different for 2.7 and 2.8, this have to be respected - function on_the_post() { - if ($this->versions->above_27) { - $this->resample_page_content(); - } - } - - //beginning WP 2.8 the order of how hooks been called have been change - //that's why the handling of resampling the page if different for 2.7 and 2.8, this have to be respected - function on_loop_start() { - if ($this->versions->above_27 == false) { - if (is_page() || is_single()) { - $this->resample_page_content(); - } - } - } - - //if we are in none standard page mode, ensure a redirect to main page slug, if sub-page has been requested directly and doesn't support virtual paging - function on_template_redirect(){ - global $post, $page; - if ($post->post_type == 'page' || $post->post_type == 'post') { - $pt = new Page_columnist_page_transition($this, $post->ID); - if (($pt->transition != $this->page_default_trans) && $page && $pt->overflow() == 'hidden') { - wp_redirect(get_permalink($post->ID)); - exit(); - } - } - } - -} - -//nothing more remains to do as to create an instance of the plugin itself :-) -global $page_columnist_plug; -$page_columnist_plug = new Plugin_page_columnist(); - -}// if !function_exists('cspc_on_activate_plugin')) { -?> \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/page-columnist/readme.txt --- a/wp/wp-content/plugins/page-columnist/readme.txt Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,110 +0,0 @@ -=== Page Columnist === -Contributors: codestyling -Tags: pages, posts, columns, magazin, style, theming, plugin -Requires at least: 2.7 -Tested up to: 3.1.3 -Stable tag: 1.7.3 - -The behavior of single posts or static pages can be re-interpreted as columns and customized as usual. - -== Description == - -This plugin allows you easily to get WordPress single posts/pages content to be shown automatically in a column based layout. -Various modes can be choosen, if you want to support additional header/footer appearances too. -This also includes possible different handling of paged posts/pages as the default WordPress implementation does. -Also an extended user interface (Admin Center Extension) supports click 'n ready usage. -**New**: Starting with version 1.5.5 the plugin has been extended to be able to support also single posts. Prior versions did only support static pages. -**New**: Starting with version 1.7.0 the plugin supports now RTL column sorting, if current language is RTL based. Additionally the plugin now supports columnization also at overview pages. This can be configured for each post/page. - -= Preview Assistance = -1st step of Preview Assistance has been introduced as started feature, but some comming things are disabled. -Nevertheless you can adjust the column distribution (width of columns) by moving the spacer between by drag'n drop. -Each page remembers this setting after saving. To get back equalized default column sizes, just tick up/down the spacing spin. - -= Virtual Paging vs. Overflow Hidden = -Pages can now be defined only between 2 and 6 columns, but i think this may be enough even for fluid designs. -It's up to you what should happen to nextpage sections that are too much for one page. By default they will be hidden. -But you can force also virtual paging, so the overflowing sections build again one (or more) sub page at the same layout. -If the number of sections is to small for choosen layout, you will get a red warning for each "missing content". - - -= Requirements = -1. WordPress version 2.7 and later -1. PHP Interpreter version 4.4.2 or later - -Please visit [the official website](http://www.code-styling.de/english/development/wordpress-plugin-page-columnist-en "Page Columnist") for further details, documentation and the latest information on this plugin. -You can also visit the new [demonstration page](http://www.code-styling.de/english/development/wordpress-plugin-page-columnist-en/demonstration-page-columnist "Page Columnist Demo") to get a first impression, what you can expect. - -== Installation == - -1. Uncompress the download package -1. Upload folder including all files and sub directories to the `/wp-content/plugins/` directory. -1. Activate the plugin through the 'Plugins' menu in WordPress -1. Navigate to your pages overview and enjoy page configurations - -== Changelog == - -= Version 1.7.3 = -* Bugfix: adjusting percentage columns in preview failed by new jQuery versions. -* Bugfix: WordPress admin bar detection in preview mode to show assistant correctly - -= Version 1.7.2 = -* Bugfix: activation procedure changed in WP 3.0 so older versions may crash. - -= Version 1.7.1 = -* Feature: behavior at overview pages can now be set specific per page/post too (defaults to same as single page) -* Bugfix: detection of supported versions and warning attached -* Bugfix: filter priority increased - -= Version 1.7.0 = -* Feature: supports now RTL language dependend column order -* Feature: for WordPress versions greated than 2.7 it's now possible to display columns at overview pages (categories/archives) too. -* Bugfix: debugging mode works without any side effects -* Bugfix: new post/page creation not longer falls back to 0% column width -* Bugfix: errors with loading translations - -= Version 1.6.0 = -* SVN error: WordPress Plugin Repository did only refresh the description but not the download! - -= Version 1.5.5 = -* Feature: only one javascript file necessary for different jQuery versions (includes hotfix handling inside) -* Feature: With this version not longer only pages can be columnized but also single posts ! - -= Version 1.3.0 = -* Extension: WordPress Version 2.8 introduces a modified order to call loop hooks, so the content resampling did not affect the output. -* Bugfix: jQuery Version changed at WP 2.8 has damaged preview assistance scripts, 2 different java scripts necessary now - -= Version 1.2.0 = -* Browser Bugs especially at IE percentual calculations have been worked arround. -* Feature: dedicated layout definition -* Feature: drag 'n drop columns sizing -* Feature: virtual layout paging and hidden overflow support - -= Version 1.1.6 / 1.1.7 / 1.1.8 = -* wordpress.org svn damaged some files! - -= Version 1.1.5 = -* Security Bugfix: it was possible with enough investigation to change layout externally -* Bugfix: IE doesn't calculate correctly with a higher number of columns -* Bugfix: Preview doesn't show the selected layout but shown after Saving Page -* Feature: Preview Assistance introduced -(Because of security fix the features still in development are not all included. Only the column spacing modification per page and global are working.) - -= Version 1.0 = -* initial version - - -== Frequently Asked Questions == -= History? = -Please visit [the official website](http://www.code-styling.de/english/development/wordpress-plugin-page-columnist-en "Page Columnist") for the latest information on this plugin. - -= Where can I get more information? = -Please visit [the official website](http://www.code-styling.de/english/development/wordpress-plugin-page-columnist-en "Page Columnist") for the latest information on this plugin. - - -== Screenshots == -1. admin center page editor integration -1. onpage preview assistance and editor -1. virtual layout based paging -1. page overview column type information - diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/page-columnist/screenshot-1.png Binary file wp/wp-content/plugins/page-columnist/screenshot-1.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/page-columnist/screenshot-2.png Binary file wp/wp-content/plugins/page-columnist/screenshot-2.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/page-columnist/screenshot-3.png Binary file wp/wp-content/plugins/page-columnist/screenshot-3.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/page-columnist/screenshot-4.png Binary file wp/wp-content/plugins/page-columnist/screenshot-4.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/page-columnist/states.png Binary file wp/wp-content/plugins/page-columnist/states.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wordpress-importer/parsers.php --- a/wp/wp-content/plugins/wordpress-importer/parsers.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,698 +0,0 @@ -parse( $file ); - - // If SimpleXML succeeds or this is an invalid WXR file then return the results - if ( ! is_wp_error( $result ) || 'SimpleXML_parse_error' != $result->get_error_code() ) - return $result; - } else if ( extension_loaded( 'xml' ) ) { - $parser = new WXR_Parser_XML; - $result = $parser->parse( $file ); - - // If XMLParser succeeds or this is an invalid WXR file then return the results - if ( ! is_wp_error( $result ) || 'XML_parse_error' != $result->get_error_code() ) - return $result; - } - - // We have a malformed XML file, so display the error and fallthrough to regex - if ( isset($result) && defined('IMPORT_DEBUG') && IMPORT_DEBUG ) { - echo '

    ';
    -			if ( 'SimpleXML_parse_error' == $result->get_error_code() ) {
    -				foreach  ( $result->get_error_data() as $error )
    -					echo $error->line . ':' . $error->column . ' ' . esc_html( $error->message ) . "\n";
    -			} else if ( 'XML_parse_error' == $result->get_error_code() ) {
    -				$error = $result->get_error_data();
    -				echo $error[0] . ':' . $error[1] . ' ' . esc_html( $error[2] );
    -			}
    -			echo '
    '; - echo '

    ' . __( 'There was an error when reading this WXR file', 'wordpress-importer' ) . '
    '; - echo __( 'Details are shown above. The importer will now try again with a different parser...', 'wordpress-importer' ) . '

    '; - } - - // use regular expressions if nothing else available or this is bad XML - $parser = new WXR_Parser_Regex; - return $parser->parse( $file ); - } -} - -/** - * WXR Parser that makes use of the SimpleXML PHP extension. - */ -class WXR_Parser_SimpleXML { - function parse( $file ) { - $authors = $posts = $categories = $tags = $terms = array(); - - $internal_errors = libxml_use_internal_errors(true); - - $dom = new DOMDocument; - $old_value = null; - if ( function_exists( 'libxml_disable_entity_loader' ) ) { - $old_value = libxml_disable_entity_loader( true ); - } - $success = $dom->loadXML( file_get_contents( $file ) ); - if ( ! is_null( $old_value ) ) { - libxml_disable_entity_loader( $old_value ); - } - - if ( ! $success || isset( $dom->doctype ) ) { - return new WP_Error( 'SimpleXML_parse_error', __( 'There was an error when reading this WXR file', 'wordpress-importer' ), libxml_get_errors() ); - } - - $xml = simplexml_import_dom( $dom ); - unset( $dom ); - - // halt if loading produces an error - if ( ! $xml ) - return new WP_Error( 'SimpleXML_parse_error', __( 'There was an error when reading this WXR file', 'wordpress-importer' ), libxml_get_errors() ); - - $wxr_version = $xml->xpath('/rss/channel/wp:wxr_version'); - if ( ! $wxr_version ) - return new WP_Error( 'WXR_parse_error', __( 'This does not appear to be a WXR file, missing/invalid WXR version number', 'wordpress-importer' ) ); - - $wxr_version = (string) trim( $wxr_version[0] ); - // confirm that we are dealing with the correct file format - if ( ! preg_match( '/^\d+\.\d+$/', $wxr_version ) ) - return new WP_Error( 'WXR_parse_error', __( 'This does not appear to be a WXR file, missing/invalid WXR version number', 'wordpress-importer' ) ); - - $base_url = $xml->xpath('/rss/channel/wp:base_site_url'); - $base_url = (string) trim( $base_url[0] ); - - $namespaces = $xml->getDocNamespaces(); - if ( ! isset( $namespaces['wp'] ) ) - $namespaces['wp'] = 'http://wordpress.org/export/1.1/'; - if ( ! isset( $namespaces['excerpt'] ) ) - $namespaces['excerpt'] = 'http://wordpress.org/export/1.1/excerpt/'; - - // grab authors - foreach ( $xml->xpath('/rss/channel/wp:author') as $author_arr ) { - $a = $author_arr->children( $namespaces['wp'] ); - $login = (string) $a->author_login; - $authors[$login] = array( - 'author_id' => (int) $a->author_id, - 'author_login' => $login, - 'author_email' => (string) $a->author_email, - 'author_display_name' => (string) $a->author_display_name, - 'author_first_name' => (string) $a->author_first_name, - 'author_last_name' => (string) $a->author_last_name - ); - } - - // grab cats, tags and terms - foreach ( $xml->xpath('/rss/channel/wp:category') as $term_arr ) { - $t = $term_arr->children( $namespaces['wp'] ); - $category = array( - 'term_id' => (int) $t->term_id, - 'category_nicename' => (string) $t->category_nicename, - 'category_parent' => (string) $t->category_parent, - 'cat_name' => (string) $t->cat_name, - 'category_description' => (string) $t->category_description - ); - - foreach ( $t->termmeta as $meta ) { - $category['termmeta'][] = array( - 'key' => (string) $meta->meta_key, - 'value' => (string) $meta->meta_value - ); - } - - $categories[] = $category; - } - - foreach ( $xml->xpath('/rss/channel/wp:tag') as $term_arr ) { - $t = $term_arr->children( $namespaces['wp'] ); - $tag = array( - 'term_id' => (int) $t->term_id, - 'tag_slug' => (string) $t->tag_slug, - 'tag_name' => (string) $t->tag_name, - 'tag_description' => (string) $t->tag_description - ); - - foreach ( $t->termmeta as $meta ) { - $tag['termmeta'][] = array( - 'key' => (string) $meta->meta_key, - 'value' => (string) $meta->meta_value - ); - } - - $tags[] = $tag; - } - - foreach ( $xml->xpath('/rss/channel/wp:term') as $term_arr ) { - $t = $term_arr->children( $namespaces['wp'] ); - $term = array( - 'term_id' => (int) $t->term_id, - 'term_taxonomy' => (string) $t->term_taxonomy, - 'slug' => (string) $t->term_slug, - 'term_parent' => (string) $t->term_parent, - 'term_name' => (string) $t->term_name, - 'term_description' => (string) $t->term_description - ); - - foreach ( $t->termmeta as $meta ) { - $term['termmeta'][] = array( - 'key' => (string) $meta->meta_key, - 'value' => (string) $meta->meta_value - ); - } - - $terms[] = $term; - } - - // grab posts - foreach ( $xml->channel->item as $item ) { - $post = array( - 'post_title' => (string) $item->title, - 'guid' => (string) $item->guid, - ); - - $dc = $item->children( 'http://purl.org/dc/elements/1.1/' ); - $post['post_author'] = (string) $dc->creator; - - $content = $item->children( 'http://purl.org/rss/1.0/modules/content/' ); - $excerpt = $item->children( $namespaces['excerpt'] ); - $post['post_content'] = (string) $content->encoded; - $post['post_excerpt'] = (string) $excerpt->encoded; - - $wp = $item->children( $namespaces['wp'] ); - $post['post_id'] = (int) $wp->post_id; - $post['post_date'] = (string) $wp->post_date; - $post['post_date_gmt'] = (string) $wp->post_date_gmt; - $post['comment_status'] = (string) $wp->comment_status; - $post['ping_status'] = (string) $wp->ping_status; - $post['post_name'] = (string) $wp->post_name; - $post['status'] = (string) $wp->status; - $post['post_parent'] = (int) $wp->post_parent; - $post['menu_order'] = (int) $wp->menu_order; - $post['post_type'] = (string) $wp->post_type; - $post['post_password'] = (string) $wp->post_password; - $post['is_sticky'] = (int) $wp->is_sticky; - - if ( isset($wp->attachment_url) ) - $post['attachment_url'] = (string) $wp->attachment_url; - - foreach ( $item->category as $c ) { - $att = $c->attributes(); - if ( isset( $att['nicename'] ) ) - $post['terms'][] = array( - 'name' => (string) $c, - 'slug' => (string) $att['nicename'], - 'domain' => (string) $att['domain'] - ); - } - - foreach ( $wp->postmeta as $meta ) { - $post['postmeta'][] = array( - 'key' => (string) $meta->meta_key, - 'value' => (string) $meta->meta_value - ); - } - - foreach ( $wp->comment as $comment ) { - $meta = array(); - if ( isset( $comment->commentmeta ) ) { - foreach ( $comment->commentmeta as $m ) { - $meta[] = array( - 'key' => (string) $m->meta_key, - 'value' => (string) $m->meta_value - ); - } - } - - $post['comments'][] = array( - 'comment_id' => (int) $comment->comment_id, - 'comment_author' => (string) $comment->comment_author, - 'comment_author_email' => (string) $comment->comment_author_email, - 'comment_author_IP' => (string) $comment->comment_author_IP, - 'comment_author_url' => (string) $comment->comment_author_url, - 'comment_date' => (string) $comment->comment_date, - 'comment_date_gmt' => (string) $comment->comment_date_gmt, - 'comment_content' => (string) $comment->comment_content, - 'comment_approved' => (string) $comment->comment_approved, - 'comment_type' => (string) $comment->comment_type, - 'comment_parent' => (string) $comment->comment_parent, - 'comment_user_id' => (int) $comment->comment_user_id, - 'commentmeta' => $meta, - ); - } - - $posts[] = $post; - } - - return array( - 'authors' => $authors, - 'posts' => $posts, - 'categories' => $categories, - 'tags' => $tags, - 'terms' => $terms, - 'base_url' => $base_url, - 'version' => $wxr_version - ); - } -} - -/** - * WXR Parser that makes use of the XML Parser PHP extension. - */ -class WXR_Parser_XML { - var $wp_tags = array( - 'wp:post_id', 'wp:post_date', 'wp:post_date_gmt', 'wp:comment_status', 'wp:ping_status', 'wp:attachment_url', - 'wp:status', 'wp:post_name', 'wp:post_parent', 'wp:menu_order', 'wp:post_type', 'wp:post_password', - 'wp:is_sticky', 'wp:term_id', 'wp:category_nicename', 'wp:category_parent', 'wp:cat_name', 'wp:category_description', - 'wp:tag_slug', 'wp:tag_name', 'wp:tag_description', 'wp:term_taxonomy', 'wp:term_parent', - 'wp:term_name', 'wp:term_description', 'wp:author_id', 'wp:author_login', 'wp:author_email', 'wp:author_display_name', - 'wp:author_first_name', 'wp:author_last_name', - ); - var $wp_sub_tags = array( - 'wp:comment_id', 'wp:comment_author', 'wp:comment_author_email', 'wp:comment_author_url', - 'wp:comment_author_IP', 'wp:comment_date', 'wp:comment_date_gmt', 'wp:comment_content', - 'wp:comment_approved', 'wp:comment_type', 'wp:comment_parent', 'wp:comment_user_id', - ); - - function parse( $file ) { - $this->wxr_version = $this->in_post = $this->cdata = $this->data = $this->sub_data = $this->in_tag = $this->in_sub_tag = false; - $this->authors = $this->posts = $this->term = $this->category = $this->tag = array(); - - $xml = xml_parser_create( 'UTF-8' ); - xml_parser_set_option( $xml, XML_OPTION_SKIP_WHITE, 1 ); - xml_parser_set_option( $xml, XML_OPTION_CASE_FOLDING, 0 ); - xml_set_object( $xml, $this ); - xml_set_character_data_handler( $xml, 'cdata' ); - xml_set_element_handler( $xml, 'tag_open', 'tag_close' ); - - if ( ! xml_parse( $xml, file_get_contents( $file ), true ) ) { - $current_line = xml_get_current_line_number( $xml ); - $current_column = xml_get_current_column_number( $xml ); - $error_code = xml_get_error_code( $xml ); - $error_string = xml_error_string( $error_code ); - return new WP_Error( 'XML_parse_error', 'There was an error when reading this WXR file', array( $current_line, $current_column, $error_string ) ); - } - xml_parser_free( $xml ); - - if ( ! preg_match( '/^\d+\.\d+$/', $this->wxr_version ) ) - return new WP_Error( 'WXR_parse_error', __( 'This does not appear to be a WXR file, missing/invalid WXR version number', 'wordpress-importer' ) ); - - return array( - 'authors' => $this->authors, - 'posts' => $this->posts, - 'categories' => $this->category, - 'tags' => $this->tag, - 'terms' => $this->term, - 'base_url' => $this->base_url, - 'version' => $this->wxr_version - ); - } - - function tag_open( $parse, $tag, $attr ) { - if ( in_array( $tag, $this->wp_tags ) ) { - $this->in_tag = substr( $tag, 3 ); - return; - } - - if ( in_array( $tag, $this->wp_sub_tags ) ) { - $this->in_sub_tag = substr( $tag, 3 ); - return; - } - - switch ( $tag ) { - case 'category': - if ( isset($attr['domain'], $attr['nicename']) ) { - $this->sub_data['domain'] = $attr['domain']; - $this->sub_data['slug'] = $attr['nicename']; - } - break; - case 'item': $this->in_post = true; - case 'title': if ( $this->in_post ) $this->in_tag = 'post_title'; break; - case 'guid': $this->in_tag = 'guid'; break; - case 'dc:creator': $this->in_tag = 'post_author'; break; - case 'content:encoded': $this->in_tag = 'post_content'; break; - case 'excerpt:encoded': $this->in_tag = 'post_excerpt'; break; - - case 'wp:term_slug': $this->in_tag = 'slug'; break; - case 'wp:meta_key': $this->in_sub_tag = 'key'; break; - case 'wp:meta_value': $this->in_sub_tag = 'value'; break; - } - } - - function cdata( $parser, $cdata ) { - if ( ! trim( $cdata ) ) - return; - - if ( false !== $this->in_tag || false !== $this->in_sub_tag ) { - $this->cdata .= $cdata; - } else { - $this->cdata .= trim( $cdata ); - } - } - - function tag_close( $parser, $tag ) { - switch ( $tag ) { - case 'wp:comment': - unset( $this->sub_data['key'], $this->sub_data['value'] ); // remove meta sub_data - if ( ! empty( $this->sub_data ) ) - $this->data['comments'][] = $this->sub_data; - $this->sub_data = false; - break; - case 'wp:commentmeta': - $this->sub_data['commentmeta'][] = array( - 'key' => $this->sub_data['key'], - 'value' => $this->sub_data['value'] - ); - break; - case 'category': - if ( ! empty( $this->sub_data ) ) { - $this->sub_data['name'] = $this->cdata; - $this->data['terms'][] = $this->sub_data; - } - $this->sub_data = false; - break; - case 'wp:postmeta': - if ( ! empty( $this->sub_data ) ) - $this->data['postmeta'][] = $this->sub_data; - $this->sub_data = false; - break; - case 'item': - $this->posts[] = $this->data; - $this->data = false; - break; - case 'wp:category': - case 'wp:tag': - case 'wp:term': - $n = substr( $tag, 3 ); - array_push( $this->$n, $this->data ); - $this->data = false; - break; - case 'wp:author': - if ( ! empty($this->data['author_login']) ) - $this->authors[$this->data['author_login']] = $this->data; - $this->data = false; - break; - case 'wp:base_site_url': - $this->base_url = $this->cdata; - break; - case 'wp:wxr_version': - $this->wxr_version = $this->cdata; - break; - - default: - if ( $this->in_sub_tag ) { - $this->sub_data[$this->in_sub_tag] = ! empty( $this->cdata ) ? $this->cdata : ''; - $this->in_sub_tag = false; - } else if ( $this->in_tag ) { - $this->data[$this->in_tag] = ! empty( $this->cdata ) ? $this->cdata : ''; - $this->in_tag = false; - } - } - - $this->cdata = false; - } -} - -/** - * WXR Parser that uses regular expressions. Fallback for installs without an XML parser. - */ -class WXR_Parser_Regex { - var $authors = array(); - var $posts = array(); - var $categories = array(); - var $tags = array(); - var $terms = array(); - var $base_url = ''; - - function __construct() { - $this->has_gzip = is_callable( 'gzopen' ); - } - - function parse( $file ) { - $wxr_version = $in_multiline = false; - - $multiline_content = ''; - - $multiline_tags = array( - 'item' => array( 'posts', array( $this, 'process_post' ) ), - 'wp:category' => array( 'categories', array( $this, 'process_category' ) ), - 'wp:tag' => array( 'tags', array( $this, 'process_tag' ) ), - 'wp:term' => array( 'terms', array( $this, 'process_term' ) ), - ); - - $fp = $this->fopen( $file, 'r' ); - if ( $fp ) { - while ( ! $this->feof( $fp ) ) { - $importline = rtrim( $this->fgets( $fp ) ); - - if ( ! $wxr_version && preg_match( '|(\d+\.\d+)|', $importline, $version ) ) - $wxr_version = $version[1]; - - if ( false !== strpos( $importline, '' ) ) { - preg_match( '|(.*?)|is', $importline, $url ); - $this->base_url = $url[1]; - continue; - } - - if ( false !== strpos( $importline, '' ) ) { - preg_match( '|(.*?)|is', $importline, $author ); - $a = $this->process_author( $author[1] ); - $this->authors[$a['author_login']] = $a; - continue; - } - - foreach ( $multiline_tags as $tag => $handler ) { - // Handle multi-line tags on a singular line - if ( preg_match( '|<' . $tag . '>(.*?)|is', $importline, $matches ) ) { - $this->{$handler[0]}[] = call_user_func( $handler[1], $matches[1] ); - - } elseif ( false !== ( $pos = strpos( $importline, "<$tag>" ) ) ) { - // Take note of any content after the opening tag - $multiline_content = trim( substr( $importline, $pos + strlen( $tag ) + 2 ) ); - - // We don't want to have this line added to `$is_multiline` below. - $importline = ''; - $in_multiline = $tag; - - } elseif ( false !== ( $pos = strpos( $importline, "" ) ) ) { - $in_multiline = false; - $multiline_content .= trim( substr( $importline, 0, $pos ) ); - - $this->{$handler[0]}[] = call_user_func( $handler[1], $multiline_content ); - } - } - - if ( $in_multiline && $importline ) { - $multiline_content .= $importline . "\n"; - } - } - - $this->fclose($fp); - } - - if ( ! $wxr_version ) - return new WP_Error( 'WXR_parse_error', __( 'This does not appear to be a WXR file, missing/invalid WXR version number', 'wordpress-importer' ) ); - - return array( - 'authors' => $this->authors, - 'posts' => $this->posts, - 'categories' => $this->categories, - 'tags' => $this->tags, - 'terms' => $this->terms, - 'base_url' => $this->base_url, - 'version' => $wxr_version - ); - } - - function get_tag( $string, $tag ) { - preg_match( "|<$tag.*?>(.*?)|is", $string, $return ); - if ( isset( $return[1] ) ) { - if ( substr( $return[1], 0, 9 ) == '' ) !== false ) { - preg_match_all( '||s', $return[1], $matches ); - $return = ''; - foreach( $matches[1] as $match ) - $return .= $match; - } else { - $return = preg_replace( '|^$|s', '$1', $return[1] ); - } - } else { - $return = $return[1]; - } - } else { - $return = ''; - } - return $return; - } - - function process_category( $c ) { - return array( - 'term_id' => $this->get_tag( $c, 'wp:term_id' ), - 'cat_name' => $this->get_tag( $c, 'wp:cat_name' ), - 'category_nicename' => $this->get_tag( $c, 'wp:category_nicename' ), - 'category_parent' => $this->get_tag( $c, 'wp:category_parent' ), - 'category_description' => $this->get_tag( $c, 'wp:category_description' ), - ); - } - - function process_tag( $t ) { - return array( - 'term_id' => $this->get_tag( $t, 'wp:term_id' ), - 'tag_name' => $this->get_tag( $t, 'wp:tag_name' ), - 'tag_slug' => $this->get_tag( $t, 'wp:tag_slug' ), - 'tag_description' => $this->get_tag( $t, 'wp:tag_description' ), - ); - } - - function process_term( $t ) { - return array( - 'term_id' => $this->get_tag( $t, 'wp:term_id' ), - 'term_taxonomy' => $this->get_tag( $t, 'wp:term_taxonomy' ), - 'slug' => $this->get_tag( $t, 'wp:term_slug' ), - 'term_parent' => $this->get_tag( $t, 'wp:term_parent' ), - 'term_name' => $this->get_tag( $t, 'wp:term_name' ), - 'term_description' => $this->get_tag( $t, 'wp:term_description' ), - ); - } - - function process_author( $a ) { - return array( - 'author_id' => $this->get_tag( $a, 'wp:author_id' ), - 'author_login' => $this->get_tag( $a, 'wp:author_login' ), - 'author_email' => $this->get_tag( $a, 'wp:author_email' ), - 'author_display_name' => $this->get_tag( $a, 'wp:author_display_name' ), - 'author_first_name' => $this->get_tag( $a, 'wp:author_first_name' ), - 'author_last_name' => $this->get_tag( $a, 'wp:author_last_name' ), - ); - } - - function process_post( $post ) { - $post_id = $this->get_tag( $post, 'wp:post_id' ); - $post_title = $this->get_tag( $post, 'title' ); - $post_date = $this->get_tag( $post, 'wp:post_date' ); - $post_date_gmt = $this->get_tag( $post, 'wp:post_date_gmt' ); - $comment_status = $this->get_tag( $post, 'wp:comment_status' ); - $ping_status = $this->get_tag( $post, 'wp:ping_status' ); - $status = $this->get_tag( $post, 'wp:status' ); - $post_name = $this->get_tag( $post, 'wp:post_name' ); - $post_parent = $this->get_tag( $post, 'wp:post_parent' ); - $menu_order = $this->get_tag( $post, 'wp:menu_order' ); - $post_type = $this->get_tag( $post, 'wp:post_type' ); - $post_password = $this->get_tag( $post, 'wp:post_password' ); - $is_sticky = $this->get_tag( $post, 'wp:is_sticky' ); - $guid = $this->get_tag( $post, 'guid' ); - $post_author = $this->get_tag( $post, 'dc:creator' ); - - $post_excerpt = $this->get_tag( $post, 'excerpt:encoded' ); - $post_excerpt = preg_replace_callback( '|<(/?[A-Z]+)|', array( &$this, '_normalize_tag' ), $post_excerpt ); - $post_excerpt = str_replace( '
    ', '
    ', $post_excerpt ); - $post_excerpt = str_replace( '
    ', '
    ', $post_excerpt ); - - $post_content = $this->get_tag( $post, 'content:encoded' ); - $post_content = preg_replace_callback( '|<(/?[A-Z]+)|', array( &$this, '_normalize_tag' ), $post_content ); - $post_content = str_replace( '
    ', '
    ', $post_content ); - $post_content = str_replace( '
    ', '
    ', $post_content ); - - $postdata = compact( 'post_id', 'post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_excerpt', - 'post_title', 'status', 'post_name', 'comment_status', 'ping_status', 'guid', 'post_parent', - 'menu_order', 'post_type', 'post_password', 'is_sticky' - ); - - $attachment_url = $this->get_tag( $post, 'wp:attachment_url' ); - if ( $attachment_url ) - $postdata['attachment_url'] = $attachment_url; - - preg_match_all( '|(.+?)|is', $post, $terms, PREG_SET_ORDER ); - foreach ( $terms as $t ) { - $post_terms[] = array( - 'slug' => $t[2], - 'domain' => $t[1], - 'name' => str_replace( array( '' ), '', $t[3] ), - ); - } - if ( ! empty( $post_terms ) ) $postdata['terms'] = $post_terms; - - preg_match_all( '|(.+?)|is', $post, $comments ); - $comments = $comments[1]; - if ( $comments ) { - foreach ( $comments as $comment ) { - preg_match_all( '|(.+?)|is', $comment, $commentmeta ); - $commentmeta = $commentmeta[1]; - $c_meta = array(); - foreach ( $commentmeta as $m ) { - $c_meta[] = array( - 'key' => $this->get_tag( $m, 'wp:meta_key' ), - 'value' => $this->get_tag( $m, 'wp:meta_value' ), - ); - } - - $post_comments[] = array( - 'comment_id' => $this->get_tag( $comment, 'wp:comment_id' ), - 'comment_author' => $this->get_tag( $comment, 'wp:comment_author' ), - 'comment_author_email' => $this->get_tag( $comment, 'wp:comment_author_email' ), - 'comment_author_IP' => $this->get_tag( $comment, 'wp:comment_author_IP' ), - 'comment_author_url' => $this->get_tag( $comment, 'wp:comment_author_url' ), - 'comment_date' => $this->get_tag( $comment, 'wp:comment_date' ), - 'comment_date_gmt' => $this->get_tag( $comment, 'wp:comment_date_gmt' ), - 'comment_content' => $this->get_tag( $comment, 'wp:comment_content' ), - 'comment_approved' => $this->get_tag( $comment, 'wp:comment_approved' ), - 'comment_type' => $this->get_tag( $comment, 'wp:comment_type' ), - 'comment_parent' => $this->get_tag( $comment, 'wp:comment_parent' ), - 'comment_user_id' => $this->get_tag( $comment, 'wp:comment_user_id' ), - 'commentmeta' => $c_meta, - ); - } - } - if ( ! empty( $post_comments ) ) $postdata['comments'] = $post_comments; - - preg_match_all( '|(.+?)|is', $post, $postmeta ); - $postmeta = $postmeta[1]; - if ( $postmeta ) { - foreach ( $postmeta as $p ) { - $post_postmeta[] = array( - 'key' => $this->get_tag( $p, 'wp:meta_key' ), - 'value' => $this->get_tag( $p, 'wp:meta_value' ), - ); - } - } - if ( ! empty( $post_postmeta ) ) $postdata['postmeta'] = $post_postmeta; - - return $postdata; - } - - function _normalize_tag( $matches ) { - return '<' . strtolower( $matches[1] ); - } - - function fopen( $filename, $mode = 'r' ) { - if ( $this->has_gzip ) - return gzopen( $filename, $mode ); - return fopen( $filename, $mode ); - } - - function feof( $fp ) { - if ( $this->has_gzip ) - return gzeof( $fp ); - return feof( $fp ); - } - - function fgets( $fp, $len = 8192 ) { - if ( $this->has_gzip ) - return gzgets( $fp, $len ); - return fgets( $fp, $len ); - } - - function fclose( $fp ) { - if ( $this->has_gzip ) - return gzclose( $fp ); - return fclose( $fp ); - } -} diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wordpress-importer/readme.txt --- a/wp/wp-content/plugins/wordpress-importer/readme.txt Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,122 +0,0 @@ -=== WordPress Importer === -Contributors: wordpressdotorg -Donate link: https://wordpressfoundation.org/donate/ -Tags: importer, wordpress -Requires at least: 3.6 -Tested up to: 4.9 -Stable tag: 0.6.4 -License: GPLv2 or later -License URI: https://www.gnu.org/licenses/gpl-2.0.html - -Import posts, pages, comments, custom fields, categories, tags and more from a WordPress export file. - -== Description == - -The WordPress Importer will import the following content from a WordPress export file: - -* Posts, pages and other custom post types -* Comments -* Custom fields and post meta -* Categories, tags and terms from custom taxonomies -* Authors - -For further information and instructions please see the [Codex page on Importing Content](https://codex.wordpress.org/Importing_Content#WordPress) - -== Installation == - -The quickest method for installing the importer is: - -1. Visit Tools -> Import in the WordPress dashboard -1. Click on the WordPress link in the list of importers -1. Click "Install Now" -1. Finally click "Activate Plugin & Run Importer" - -If you would prefer to do things manually then follow these instructions: - -1. Upload the `wordpress-importer` folder to the `/wp-content/plugins/` directory -1. Activate the plugin through the 'Plugins' menu in WordPress -1. Go to the Tools -> Import screen, click on WordPress - -== Changelog == - -= 0.6.4 = -* Improve PHP7 compatibility. -* Fix bug that caused slashes to be stripped from imported comments. -* Fix for various deprecation notices including `wp_get_http()` and `screen_icon()`. -* Fix for importing export files with multiline term meta data. - -= 0.6.3 = -* Add support for import term metadata. -* Fix bug that caused slashes to be stripped from imported content. -* Fix bug that caused characters to be stripped inside of CDATA in some cases. -* Fix PHP notices. - -= 0.6.2 = -* Add `wp_import_existing_post` filter, see [Trac ticket #33721](https://core.trac.wordpress.org/ticket/33721). - -= 0.6 = -* Support for WXR 1.2 and multiple CDATA sections -* Post aren't duplicates if their post_type's are different - -= 0.5.2 = -* Double check that the uploaded export file exists before processing it. This prevents incorrect error messages when -an export file is uploaded to a server with bad permissions and WordPress 3.3 or 3.3.1 is being used. - -= 0.5 = -* Import comment meta (requires export from WordPress 3.2) -* Minor bugfixes and enhancements - -= 0.4 = -* Map comment user_id where possible -* Import attachments from `wp:attachment_url` -* Upload attachments to correct directory -* Remap resized image URLs correctly - -= 0.3 = -* Use an XML Parser if possible -* Proper import support for nav menus -* ... and much more, see [Trac ticket #15197](https://core.trac.wordpress.org/ticket/15197) - -= 0.1 = -* Initial release - -== Upgrade Notice == - -= 0.6 = -Support for exports from WordPress 3.4. - -= 0.5.2 = -Fix incorrect error message when the export file could not be uploaded. - -= 0.5 = -Import comment meta and other minor bugfixes and enhancements. - -= 0.4 = -Bug fixes for attachment importing and other small enhancements. - -= 0.3 = -Upgrade for a more robust and reliable experience when importing WordPress export files, and for compatibility with WordPress 3.1. - -== Frequently Asked Questions == - -= Help! I'm getting out of memory errors or a blank screen. = -If your exported file is very large, the import script may run into your host's configured memory limit for PHP. - -A message like "Fatal error: Allowed memory size of 8388608 bytes exhausted" indicates that the script can't successfully import your XML file under the current PHP memory limit. If you have access to the php.ini file, you can manually increase the limit; if you do not (your WordPress installation is hosted on a shared server, for instance), you might have to break your exported XML file into several smaller pieces and run the import script one at a time. - -For those with shared hosting, the best alternative may be to consult hosting support to determine the safest approach for running the import. A host may be willing to temporarily lift the memory limit and/or run the process directly from their end. - --- [WordPress Codex: Importing Content](https://codex.wordpress.org/Importing_Content#Before_Importing) - -== Filters == - -The importer has a couple of filters to allow you to completely enable/block certain features: - -* `import_allow_create_users`: return false if you only want to allow mapping to existing users -* `import_allow_fetch_attachments`: return false if you do not wish to allow importing and downloading of attachments -* `import_attachment_size_limit`: return an integer value for the maximum file size in bytes to save (default is 0, which is unlimited) - -There are also a few actions available to hook into: - -* `import_start`: occurs after the export file has been uploaded and author import settings have been chosen -* `import_end`: called after the last output from the importer diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wordpress-importer/wordpress-importer.php --- a/wp/wp-content/plugins/wordpress-importer/wordpress-importer.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1228 +0,0 @@ -header(); - - $step = empty( $_GET['step'] ) ? 0 : (int) $_GET['step']; - switch ( $step ) { - case 0: - $this->greet(); - break; - case 1: - check_admin_referer( 'import-upload' ); - if ( $this->handle_upload() ) - $this->import_options(); - break; - case 2: - check_admin_referer( 'import-wordpress' ); - $this->fetch_attachments = ( ! empty( $_POST['fetch_attachments'] ) && $this->allow_fetch_attachments() ); - $this->id = (int) $_POST['import_id']; - $file = get_attached_file( $this->id ); - set_time_limit(0); - $this->import( $file ); - break; - } - - $this->footer(); - } - - /** - * The main controller for the actual import stage. - * - * @param string $file Path to the WXR file for importing - */ - function import( $file ) { - add_filter( 'import_post_meta_key', array( $this, 'is_valid_meta_key' ) ); - add_filter( 'http_request_timeout', array( &$this, 'bump_request_timeout' ) ); - - $this->import_start( $file ); - - $this->get_author_mapping(); - - wp_suspend_cache_invalidation( true ); - $this->process_categories(); - $this->process_tags(); - $this->process_terms(); - $this->process_posts(); - wp_suspend_cache_invalidation( false ); - - // update incorrect/missing information in the DB - $this->backfill_parents(); - $this->backfill_attachment_urls(); - $this->remap_featured_images(); - - $this->import_end(); - } - - /** - * Parses the WXR file and prepares us for the task of processing parsed data - * - * @param string $file Path to the WXR file for importing - */ - function import_start( $file ) { - if ( ! is_file($file) ) { - echo '

    ' . __( 'Sorry, there has been an error.', 'wordpress-importer' ) . '
    '; - echo __( 'The file does not exist, please try again.', 'wordpress-importer' ) . '

    '; - $this->footer(); - die(); - } - - $import_data = $this->parse( $file ); - - if ( is_wp_error( $import_data ) ) { - echo '

    ' . __( 'Sorry, there has been an error.', 'wordpress-importer' ) . '
    '; - echo esc_html( $import_data->get_error_message() ) . '

    '; - $this->footer(); - die(); - } - - $this->version = $import_data['version']; - $this->get_authors_from_import( $import_data ); - $this->posts = $import_data['posts']; - $this->terms = $import_data['terms']; - $this->categories = $import_data['categories']; - $this->tags = $import_data['tags']; - $this->base_url = esc_url( $import_data['base_url'] ); - - wp_defer_term_counting( true ); - wp_defer_comment_counting( true ); - - do_action( 'import_start' ); - } - - /** - * Performs post-import cleanup of files and the cache - */ - function import_end() { - wp_import_cleanup( $this->id ); - - wp_cache_flush(); - foreach ( get_taxonomies() as $tax ) { - delete_option( "{$tax}_children" ); - _get_term_hierarchy( $tax ); - } - - wp_defer_term_counting( false ); - wp_defer_comment_counting( false ); - - echo '

    ' . __( 'All done.', 'wordpress-importer' ) . ' ' . __( 'Have fun!', 'wordpress-importer' ) . '' . '

    '; - echo '

    ' . __( 'Remember to update the passwords and roles of imported users.', 'wordpress-importer' ) . '

    '; - - do_action( 'import_end' ); - } - - /** - * Handles the WXR upload and initial parsing of the file to prepare for - * displaying author import options - * - * @return bool False if error uploading or invalid file, true otherwise - */ - function handle_upload() { - $file = wp_import_handle_upload(); - - if ( isset( $file['error'] ) ) { - echo '

    ' . __( 'Sorry, there has been an error.', 'wordpress-importer' ) . '
    '; - echo esc_html( $file['error'] ) . '

    '; - return false; - } else if ( ! file_exists( $file['file'] ) ) { - echo '

    ' . __( 'Sorry, there has been an error.', 'wordpress-importer' ) . '
    '; - printf( __( 'The export file could not be found at %s. It is likely that this was caused by a permissions problem.', 'wordpress-importer' ), esc_html( $file['file'] ) ); - echo '

    '; - return false; - } - - $this->id = (int) $file['id']; - $import_data = $this->parse( $file['file'] ); - if ( is_wp_error( $import_data ) ) { - echo '

    ' . __( 'Sorry, there has been an error.', 'wordpress-importer' ) . '
    '; - echo esc_html( $import_data->get_error_message() ) . '

    '; - return false; - } - - $this->version = $import_data['version']; - if ( $this->version > $this->max_wxr_version ) { - echo '

    '; - printf( __( 'This WXR file (version %s) may not be supported by this version of the importer. Please consider updating.', 'wordpress-importer' ), esc_html($import_data['version']) ); - echo '

    '; - } - - $this->get_authors_from_import( $import_data ); - - return true; - } - - /** - * Retrieve authors from parsed WXR data - * - * Uses the provided author information from WXR 1.1 files - * or extracts info from each post for WXR 1.0 files - * - * @param array $import_data Data returned by a WXR parser - */ - function get_authors_from_import( $import_data ) { - if ( ! empty( $import_data['authors'] ) ) { - $this->authors = $import_data['authors']; - // no author information, grab it from the posts - } else { - foreach ( $import_data['posts'] as $post ) { - $login = sanitize_user( $post['post_author'], true ); - if ( empty( $login ) ) { - printf( __( 'Failed to import author %s. Their posts will be attributed to the current user.', 'wordpress-importer' ), esc_html( $post['post_author'] ) ); - echo '
    '; - continue; - } - - if ( ! isset($this->authors[$login]) ) - $this->authors[$login] = array( - 'author_login' => $login, - 'author_display_name' => $post['post_author'] - ); - } - } - } - - /** - * Display pre-import options, author importing/mapping and option to - * fetch attachments - */ - function import_options() { - $j = 0; -?> -
    - - - -authors ) ) : ?> -

    -

    admins entries.', 'wordpress-importer' ); ?>

    -allow_create_users() ) : ?> -

    - -
      -authors as $author ) : ?> -
    1. author_select( $j++, $author ); ?>
    2. - -
    - - -allow_fetch_attachments() ) : ?> -

    -

    - - -

    - - -

    -
    -' . esc_html( $author['author_display_name'] ); - if ( $this->version != '1.0' ) echo ' (' . esc_html( $author['author_login'] ) . ')'; - echo '
    '; - - if ( $this->version != '1.0' ) - echo '
    '; - - $create_users = $this->allow_create_users(); - if ( $create_users ) { - if ( $this->version != '1.0' ) { - _e( 'or create new user with login name:', 'wordpress-importer' ); - $value = ''; - } else { - _e( 'as a new user:', 'wordpress-importer' ); - $value = esc_attr( sanitize_user( $author['author_login'], true ) ); - } - - echo '
    '; - } - - if ( ! $create_users && $this->version == '1.0' ) - _e( 'assign posts to an existing user:', 'wordpress-importer' ); - else - _e( 'or assign posts to an existing user:', 'wordpress-importer' ); - wp_dropdown_users( array( 'name' => "user_map[$n]", 'multi' => true, 'show_option_all' => __( '- Select -', 'wordpress-importer' ) ) ); - echo ''; - - if ( $this->version != '1.0' ) - echo '
    '; - } - - /** - * Map old author logins to local user IDs based on decisions made - * in import options form. Can map to an existing user, create a new user - * or falls back to the current user in case of error with either of the previous - */ - function get_author_mapping() { - if ( ! isset( $_POST['imported_authors'] ) ) - return; - - $create_users = $this->allow_create_users(); - - foreach ( (array) $_POST['imported_authors'] as $i => $old_login ) { - // Multisite adds strtolower to sanitize_user. Need to sanitize here to stop breakage in process_posts. - $santized_old_login = sanitize_user( $old_login, true ); - $old_id = isset( $this->authors[$old_login]['author_id'] ) ? intval($this->authors[$old_login]['author_id']) : false; - - if ( ! empty( $_POST['user_map'][$i] ) ) { - $user = get_userdata( intval($_POST['user_map'][$i]) ); - if ( isset( $user->ID ) ) { - if ( $old_id ) - $this->processed_authors[$old_id] = $user->ID; - $this->author_mapping[$santized_old_login] = $user->ID; - } - } else if ( $create_users ) { - if ( ! empty($_POST['user_new'][$i]) ) { - $user_id = wp_create_user( $_POST['user_new'][$i], wp_generate_password() ); - } else if ( $this->version != '1.0' ) { - $user_data = array( - 'user_login' => $old_login, - 'user_pass' => wp_generate_password(), - 'user_email' => isset( $this->authors[$old_login]['author_email'] ) ? $this->authors[$old_login]['author_email'] : '', - 'display_name' => $this->authors[$old_login]['author_display_name'], - 'first_name' => isset( $this->authors[$old_login]['author_first_name'] ) ? $this->authors[$old_login]['author_first_name'] : '', - 'last_name' => isset( $this->authors[$old_login]['author_last_name'] ) ? $this->authors[$old_login]['author_last_name'] : '', - ); - $user_id = wp_insert_user( $user_data ); - } - - if ( ! is_wp_error( $user_id ) ) { - if ( $old_id ) - $this->processed_authors[$old_id] = $user_id; - $this->author_mapping[$santized_old_login] = $user_id; - } else { - printf( __( 'Failed to create new user for %s. Their posts will be attributed to the current user.', 'wordpress-importer' ), esc_html($this->authors[$old_login]['author_display_name']) ); - if ( defined('IMPORT_DEBUG') && IMPORT_DEBUG ) - echo ' ' . $user_id->get_error_message(); - echo '
    '; - } - } - - // failsafe: if the user_id was invalid, default to the current user - if ( ! isset( $this->author_mapping[$santized_old_login] ) ) { - if ( $old_id ) - $this->processed_authors[$old_id] = (int) get_current_user_id(); - $this->author_mapping[$santized_old_login] = (int) get_current_user_id(); - } - } - } - - /** - * Create new categories based on import information - * - * Doesn't create a new category if its slug already exists - */ - function process_categories() { - $this->categories = apply_filters( 'wp_import_categories', $this->categories ); - - if ( empty( $this->categories ) ) - return; - - foreach ( $this->categories as $cat ) { - // if the category already exists leave it alone - $term_id = term_exists( $cat['category_nicename'], 'category' ); - if ( $term_id ) { - if ( is_array($term_id) ) $term_id = $term_id['term_id']; - if ( isset($cat['term_id']) ) - $this->processed_terms[intval($cat['term_id'])] = (int) $term_id; - continue; - } - - $category_parent = empty( $cat['category_parent'] ) ? 0 : category_exists( $cat['category_parent'] ); - $category_description = isset( $cat['category_description'] ) ? $cat['category_description'] : ''; - $catarr = array( - 'category_nicename' => $cat['category_nicename'], - 'category_parent' => $category_parent, - 'cat_name' => $cat['cat_name'], - 'category_description' => $category_description - ); - $catarr = wp_slash( $catarr ); - - $id = wp_insert_category( $catarr ); - if ( ! is_wp_error( $id ) ) { - if ( isset($cat['term_id']) ) - $this->processed_terms[intval($cat['term_id'])] = $id; - } else { - printf( __( 'Failed to import category %s', 'wordpress-importer' ), esc_html($cat['category_nicename']) ); - if ( defined('IMPORT_DEBUG') && IMPORT_DEBUG ) - echo ': ' . $id->get_error_message(); - echo '
    '; - continue; - } - - $this->process_termmeta( $cat, $id['term_id'] ); - } - - unset( $this->categories ); - } - - /** - * Create new post tags based on import information - * - * Doesn't create a tag if its slug already exists - */ - function process_tags() { - $this->tags = apply_filters( 'wp_import_tags', $this->tags ); - - if ( empty( $this->tags ) ) - return; - - foreach ( $this->tags as $tag ) { - // if the tag already exists leave it alone - $term_id = term_exists( $tag['tag_slug'], 'post_tag' ); - if ( $term_id ) { - if ( is_array($term_id) ) $term_id = $term_id['term_id']; - if ( isset($tag['term_id']) ) - $this->processed_terms[intval($tag['term_id'])] = (int) $term_id; - continue; - } - - $tag = wp_slash( $tag ); - $tag_desc = isset( $tag['tag_description'] ) ? $tag['tag_description'] : ''; - $tagarr = array( 'slug' => $tag['tag_slug'], 'description' => $tag_desc ); - - $id = wp_insert_term( $tag['tag_name'], 'post_tag', $tagarr ); - if ( ! is_wp_error( $id ) ) { - if ( isset($tag['term_id']) ) - $this->processed_terms[intval($tag['term_id'])] = $id['term_id']; - } else { - printf( __( 'Failed to import post tag %s', 'wordpress-importer' ), esc_html($tag['tag_name']) ); - if ( defined('IMPORT_DEBUG') && IMPORT_DEBUG ) - echo ': ' . $id->get_error_message(); - echo '
    '; - continue; - } - - $this->process_termmeta( $tag, $id['term_id'] ); - } - - unset( $this->tags ); - } - - /** - * Create new terms based on import information - * - * Doesn't create a term its slug already exists - */ - function process_terms() { - $this->terms = apply_filters( 'wp_import_terms', $this->terms ); - - if ( empty( $this->terms ) ) - return; - - foreach ( $this->terms as $term ) { - // if the term already exists in the correct taxonomy leave it alone - $term_id = term_exists( $term['slug'], $term['term_taxonomy'] ); - if ( $term_id ) { - if ( is_array($term_id) ) $term_id = $term_id['term_id']; - if ( isset($term['term_id']) ) - $this->processed_terms[intval($term['term_id'])] = (int) $term_id; - continue; - } - - if ( empty( $term['term_parent'] ) ) { - $parent = 0; - } else { - $parent = term_exists( $term['term_parent'], $term['term_taxonomy'] ); - if ( is_array( $parent ) ) $parent = $parent['term_id']; - } - $term = wp_slash( $term ); - $description = isset( $term['term_description'] ) ? $term['term_description'] : ''; - $termarr = array( 'slug' => $term['slug'], 'description' => $description, 'parent' => intval($parent) ); - - $id = wp_insert_term( $term['term_name'], $term['term_taxonomy'], $termarr ); - if ( ! is_wp_error( $id ) ) { - if ( isset($term['term_id']) ) - $this->processed_terms[intval($term['term_id'])] = $id['term_id']; - } else { - printf( __( 'Failed to import %s %s', 'wordpress-importer' ), esc_html($term['term_taxonomy']), esc_html($term['term_name']) ); - if ( defined('IMPORT_DEBUG') && IMPORT_DEBUG ) - echo ': ' . $id->get_error_message(); - echo '
    '; - continue; - } - - $this->process_termmeta( $term, $id['term_id'] ); - } - - unset( $this->terms ); - } - - /** - * Add metadata to imported term. - * - * @since 0.6.2 - * - * @param array $term Term data from WXR import. - * @param int $term_id ID of the newly created term. - */ - protected function process_termmeta( $term, $term_id ) { - if ( ! isset( $term['termmeta'] ) ) { - $term['termmeta'] = array(); - } - - /** - * Filters the metadata attached to an imported term. - * - * @since 0.6.2 - * - * @param array $termmeta Array of term meta. - * @param int $term_id ID of the newly created term. - * @param array $term Term data from the WXR import. - */ - $term['termmeta'] = apply_filters( 'wp_import_term_meta', $term['termmeta'], $term_id, $term ); - - if ( empty( $term['termmeta'] ) ) { - return; - } - - foreach ( $term['termmeta'] as $meta ) { - /** - * Filters the meta key for an imported piece of term meta. - * - * @since 0.6.2 - * - * @param string $meta_key Meta key. - * @param int $term_id ID of the newly created term. - * @param array $term Term data from the WXR import. - */ - $key = apply_filters( 'import_term_meta_key', $meta['key'], $term_id, $term ); - if ( ! $key ) { - continue; - } - - // Export gets meta straight from the DB so could have a serialized string - $value = maybe_unserialize( $meta['value'] ); - - add_term_meta( $term_id, $key, $value ); - - /** - * Fires after term meta is imported. - * - * @since 0.6.2 - * - * @param int $term_id ID of the newly created term. - * @param string $key Meta key. - * @param mixed $value Meta value. - */ - do_action( 'import_term_meta', $term_id, $key, $value ); - } - } - - /** - * Create new posts based on import information - * - * Posts marked as having a parent which doesn't exist will become top level items. - * Doesn't create a new post if: the post type doesn't exist, the given post ID - * is already noted as imported or a post with the same title and date already exists. - * Note that new/updated terms, comments and meta are imported for the last of the above. - */ - function process_posts() { - $this->posts = apply_filters( 'wp_import_posts', $this->posts ); - - foreach ( $this->posts as $post ) { - $post = apply_filters( 'wp_import_post_data_raw', $post ); - - if ( ! post_type_exists( $post['post_type'] ) ) { - printf( __( 'Failed to import “%s”: Invalid post type %s', 'wordpress-importer' ), - esc_html($post['post_title']), esc_html($post['post_type']) ); - echo '
    '; - do_action( 'wp_import_post_exists', $post ); - continue; - } - - if ( isset( $this->processed_posts[$post['post_id']] ) && ! empty( $post['post_id'] ) ) - continue; - - if ( $post['status'] == 'auto-draft' ) - continue; - - if ( 'nav_menu_item' == $post['post_type'] ) { - $this->process_menu_item( $post ); - continue; - } - - $post_type_object = get_post_type_object( $post['post_type'] ); - - $post_exists = post_exists( $post['post_title'], '', $post['post_date'] ); - - /** - * Filter ID of the existing post corresponding to post currently importing. - * - * Return 0 to force the post to be imported. Filter the ID to be something else - * to override which existing post is mapped to the imported post. - * - * @see post_exists() - * @since 0.6.2 - * - * @param int $post_exists Post ID, or 0 if post did not exist. - * @param array $post The post array to be inserted. - */ - $post_exists = apply_filters( 'wp_import_existing_post', $post_exists, $post ); - - if ( $post_exists && get_post_type( $post_exists ) == $post['post_type'] ) { - printf( __('%s “%s” already exists.', 'wordpress-importer'), $post_type_object->labels->singular_name, esc_html($post['post_title']) ); - echo '
    '; - $comment_post_ID = $post_id = $post_exists; - $this->processed_posts[ intval( $post['post_id'] ) ] = intval( $post_exists ); - } else { - $post_parent = (int) $post['post_parent']; - if ( $post_parent ) { - // if we already know the parent, map it to the new local ID - if ( isset( $this->processed_posts[$post_parent] ) ) { - $post_parent = $this->processed_posts[$post_parent]; - // otherwise record the parent for later - } else { - $this->post_orphans[intval($post['post_id'])] = $post_parent; - $post_parent = 0; - } - } - - // map the post author - $author = sanitize_user( $post['post_author'], true ); - if ( isset( $this->author_mapping[$author] ) ) - $author = $this->author_mapping[$author]; - else - $author = (int) get_current_user_id(); - - $postdata = array( - 'import_id' => $post['post_id'], 'post_author' => $author, 'post_date' => $post['post_date'], - 'post_date_gmt' => $post['post_date_gmt'], 'post_content' => $post['post_content'], - 'post_excerpt' => $post['post_excerpt'], 'post_title' => $post['post_title'], - 'post_status' => $post['status'], 'post_name' => $post['post_name'], - 'comment_status' => $post['comment_status'], 'ping_status' => $post['ping_status'], - 'guid' => $post['guid'], 'post_parent' => $post_parent, 'menu_order' => $post['menu_order'], - 'post_type' => $post['post_type'], 'post_password' => $post['post_password'] - ); - - $original_post_ID = $post['post_id']; - $postdata = apply_filters( 'wp_import_post_data_processed', $postdata, $post ); - - $postdata = wp_slash( $postdata ); - - if ( 'attachment' == $postdata['post_type'] ) { - $remote_url = ! empty($post['attachment_url']) ? $post['attachment_url'] : $post['guid']; - - // try to use _wp_attached file for upload folder placement to ensure the same location as the export site - // e.g. location is 2003/05/image.jpg but the attachment post_date is 2010/09, see media_handle_upload() - $postdata['upload_date'] = $post['post_date']; - if ( isset( $post['postmeta'] ) ) { - foreach( $post['postmeta'] as $meta ) { - if ( $meta['key'] == '_wp_attached_file' ) { - if ( preg_match( '%^[0-9]{4}/[0-9]{2}%', $meta['value'], $matches ) ) - $postdata['upload_date'] = $matches[0]; - break; - } - } - } - - $comment_post_ID = $post_id = $this->process_attachment( $postdata, $remote_url ); - } else { - $comment_post_ID = $post_id = wp_insert_post( $postdata, true ); - do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post ); - } - - if ( is_wp_error( $post_id ) ) { - printf( __( 'Failed to import %s “%s”', 'wordpress-importer' ), - $post_type_object->labels->singular_name, esc_html($post['post_title']) ); - if ( defined('IMPORT_DEBUG') && IMPORT_DEBUG ) - echo ': ' . $post_id->get_error_message(); - echo '
    '; - continue; - } - - if ( $post['is_sticky'] == 1 ) - stick_post( $post_id ); - } - - // map pre-import ID to local ID - $this->processed_posts[intval($post['post_id'])] = (int) $post_id; - - if ( ! isset( $post['terms'] ) ) - $post['terms'] = array(); - - $post['terms'] = apply_filters( 'wp_import_post_terms', $post['terms'], $post_id, $post ); - - // add categories, tags and other terms - if ( ! empty( $post['terms'] ) ) { - $terms_to_set = array(); - foreach ( $post['terms'] as $term ) { - // back compat with WXR 1.0 map 'tag' to 'post_tag' - $taxonomy = ( 'tag' == $term['domain'] ) ? 'post_tag' : $term['domain']; - $term_exists = term_exists( $term['slug'], $taxonomy ); - $term_id = is_array( $term_exists ) ? $term_exists['term_id'] : $term_exists; - if ( ! $term_id ) { - $t = wp_insert_term( $term['name'], $taxonomy, array( 'slug' => $term['slug'] ) ); - if ( ! is_wp_error( $t ) ) { - $term_id = $t['term_id']; - do_action( 'wp_import_insert_term', $t, $term, $post_id, $post ); - } else { - printf( __( 'Failed to import %s %s', 'wordpress-importer' ), esc_html($taxonomy), esc_html($term['name']) ); - if ( defined('IMPORT_DEBUG') && IMPORT_DEBUG ) - echo ': ' . $t->get_error_message(); - echo '
    '; - do_action( 'wp_import_insert_term_failed', $t, $term, $post_id, $post ); - continue; - } - } - $terms_to_set[$taxonomy][] = intval( $term_id ); - } - - foreach ( $terms_to_set as $tax => $ids ) { - $tt_ids = wp_set_post_terms( $post_id, $ids, $tax ); - do_action( 'wp_import_set_post_terms', $tt_ids, $ids, $tax, $post_id, $post ); - } - unset( $post['terms'], $terms_to_set ); - } - - if ( ! isset( $post['comments'] ) ) - $post['comments'] = array(); - - $post['comments'] = apply_filters( 'wp_import_post_comments', $post['comments'], $post_id, $post ); - - // add/update comments - if ( ! empty( $post['comments'] ) ) { - $num_comments = 0; - $inserted_comments = array(); - foreach ( $post['comments'] as $comment ) { - $comment_id = $comment['comment_id']; - $newcomments[$comment_id]['comment_post_ID'] = $comment_post_ID; - $newcomments[$comment_id]['comment_author'] = $comment['comment_author']; - $newcomments[$comment_id]['comment_author_email'] = $comment['comment_author_email']; - $newcomments[$comment_id]['comment_author_IP'] = $comment['comment_author_IP']; - $newcomments[$comment_id]['comment_author_url'] = $comment['comment_author_url']; - $newcomments[$comment_id]['comment_date'] = $comment['comment_date']; - $newcomments[$comment_id]['comment_date_gmt'] = $comment['comment_date_gmt']; - $newcomments[$comment_id]['comment_content'] = $comment['comment_content']; - $newcomments[$comment_id]['comment_approved'] = $comment['comment_approved']; - $newcomments[$comment_id]['comment_type'] = $comment['comment_type']; - $newcomments[$comment_id]['comment_parent'] = $comment['comment_parent']; - $newcomments[$comment_id]['commentmeta'] = isset( $comment['commentmeta'] ) ? $comment['commentmeta'] : array(); - if ( isset( $this->processed_authors[$comment['comment_user_id']] ) ) - $newcomments[$comment_id]['user_id'] = $this->processed_authors[$comment['comment_user_id']]; - } - ksort( $newcomments ); - - foreach ( $newcomments as $key => $comment ) { - // if this is a new post we can skip the comment_exists() check - if ( ! $post_exists || ! comment_exists( $comment['comment_author'], $comment['comment_date'] ) ) { - if ( isset( $inserted_comments[$comment['comment_parent']] ) ) - $comment['comment_parent'] = $inserted_comments[$comment['comment_parent']]; - $comment = wp_slash( $comment ); - $comment = wp_filter_comment( $comment ); - $inserted_comments[$key] = wp_insert_comment( $comment ); - do_action( 'wp_import_insert_comment', $inserted_comments[$key], $comment, $comment_post_ID, $post ); - - foreach( $comment['commentmeta'] as $meta ) { - $value = maybe_unserialize( $meta['value'] ); - add_comment_meta( $inserted_comments[$key], $meta['key'], $value ); - } - - $num_comments++; - } - } - unset( $newcomments, $inserted_comments, $post['comments'] ); - } - - if ( ! isset( $post['postmeta'] ) ) - $post['postmeta'] = array(); - - $post['postmeta'] = apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ); - - // add/update post meta - if ( ! empty( $post['postmeta'] ) ) { - foreach ( $post['postmeta'] as $meta ) { - $key = apply_filters( 'import_post_meta_key', $meta['key'], $post_id, $post ); - $value = false; - - if ( '_edit_last' == $key ) { - if ( isset( $this->processed_authors[intval($meta['value'])] ) ) - $value = $this->processed_authors[intval($meta['value'])]; - else - $key = false; - } - - if ( $key ) { - // export gets meta straight from the DB so could have a serialized string - if ( ! $value ) - $value = maybe_unserialize( $meta['value'] ); - - add_post_meta( $post_id, $key, $value ); - do_action( 'import_post_meta', $post_id, $key, $value ); - - // if the post has a featured image, take note of this in case of remap - if ( '_thumbnail_id' == $key ) - $this->featured_images[$post_id] = (int) $value; - } - } - } - } - - unset( $this->posts ); - } - - /** - * Attempt to create a new menu item from import data - * - * Fails for draft, orphaned menu items and those without an associated nav_menu - * or an invalid nav_menu term. If the post type or term object which the menu item - * represents doesn't exist then the menu item will not be imported (waits until the - * end of the import to retry again before discarding). - * - * @param array $item Menu item details from WXR file - */ - function process_menu_item( $item ) { - // skip draft, orphaned menu items - if ( 'draft' == $item['status'] ) - return; - - $menu_slug = false; - if ( isset($item['terms']) ) { - // loop through terms, assume first nav_menu term is correct menu - foreach ( $item['terms'] as $term ) { - if ( 'nav_menu' == $term['domain'] ) { - $menu_slug = $term['slug']; - break; - } - } - } - - // no nav_menu term associated with this menu item - if ( ! $menu_slug ) { - _e( 'Menu item skipped due to missing menu slug', 'wordpress-importer' ); - echo '
    '; - return; - } - - $menu_id = term_exists( $menu_slug, 'nav_menu' ); - if ( ! $menu_id ) { - printf( __( 'Menu item skipped due to invalid menu slug: %s', 'wordpress-importer' ), esc_html( $menu_slug ) ); - echo '
    '; - return; - } else { - $menu_id = is_array( $menu_id ) ? $menu_id['term_id'] : $menu_id; - } - - foreach ( $item['postmeta'] as $meta ) - ${$meta['key']} = $meta['value']; - - if ( 'taxonomy' == $_menu_item_type && isset( $this->processed_terms[intval($_menu_item_object_id)] ) ) { - $_menu_item_object_id = $this->processed_terms[intval($_menu_item_object_id)]; - } else if ( 'post_type' == $_menu_item_type && isset( $this->processed_posts[intval($_menu_item_object_id)] ) ) { - $_menu_item_object_id = $this->processed_posts[intval($_menu_item_object_id)]; - } else if ( 'custom' != $_menu_item_type ) { - // associated object is missing or not imported yet, we'll retry later - $this->missing_menu_items[] = $item; - return; - } - - if ( isset( $this->processed_menu_items[intval($_menu_item_menu_item_parent)] ) ) { - $_menu_item_menu_item_parent = $this->processed_menu_items[intval($_menu_item_menu_item_parent)]; - } else if ( $_menu_item_menu_item_parent ) { - $this->menu_item_orphans[intval($item['post_id'])] = (int) $_menu_item_menu_item_parent; - $_menu_item_menu_item_parent = 0; - } - - // wp_update_nav_menu_item expects CSS classes as a space separated string - $_menu_item_classes = maybe_unserialize( $_menu_item_classes ); - if ( is_array( $_menu_item_classes ) ) - $_menu_item_classes = implode( ' ', $_menu_item_classes ); - - $args = array( - 'menu-item-object-id' => $_menu_item_object_id, - 'menu-item-object' => $_menu_item_object, - 'menu-item-parent-id' => $_menu_item_menu_item_parent, - 'menu-item-position' => intval( $item['menu_order'] ), - 'menu-item-type' => $_menu_item_type, - 'menu-item-title' => $item['post_title'], - 'menu-item-url' => $_menu_item_url, - 'menu-item-description' => $item['post_content'], - 'menu-item-attr-title' => $item['post_excerpt'], - 'menu-item-target' => $_menu_item_target, - 'menu-item-classes' => $_menu_item_classes, - 'menu-item-xfn' => $_menu_item_xfn, - 'menu-item-status' => $item['status'] - ); - - $id = wp_update_nav_menu_item( $menu_id, 0, $args ); - if ( $id && ! is_wp_error( $id ) ) - $this->processed_menu_items[intval($item['post_id'])] = (int) $id; - } - - /** - * If fetching attachments is enabled then attempt to create a new attachment - * - * @param array $post Attachment post details from WXR - * @param string $url URL to fetch attachment from - * @return int|WP_Error Post ID on success, WP_Error otherwise - */ - function process_attachment( $post, $url ) { - if ( ! $this->fetch_attachments ) - return new WP_Error( 'attachment_processing_error', - __( 'Fetching attachments is not enabled', 'wordpress-importer' ) ); - - // if the URL is absolute, but does not contain address, then upload it assuming base_site_url - if ( preg_match( '|^/[\w\W]+$|', $url ) ) - $url = rtrim( $this->base_url, '/' ) . $url; - - $upload = $this->fetch_remote_file( $url, $post ); - if ( is_wp_error( $upload ) ) - return $upload; - - if ( $info = wp_check_filetype( $upload['file'] ) ) - $post['post_mime_type'] = $info['type']; - else - return new WP_Error( 'attachment_processing_error', __('Invalid file type', 'wordpress-importer') ); - - $post['guid'] = $upload['url']; - - // as per wp-admin/includes/upload.php - $post_id = wp_insert_attachment( $post, $upload['file'] ); - wp_update_attachment_metadata( $post_id, wp_generate_attachment_metadata( $post_id, $upload['file'] ) ); - - // remap resized image URLs, works by stripping the extension and remapping the URL stub. - if ( preg_match( '!^image/!', $info['type'] ) ) { - $parts = pathinfo( $url ); - $name = basename( $parts['basename'], ".{$parts['extension']}" ); // PATHINFO_FILENAME in PHP 5.2 - - $parts_new = pathinfo( $upload['url'] ); - $name_new = basename( $parts_new['basename'], ".{$parts_new['extension']}" ); - - $this->url_remap[$parts['dirname'] . '/' . $name] = $parts_new['dirname'] . '/' . $name_new; - } - - return $post_id; - } - - /** - * Attempt to download a remote file attachment - * - * @param string $url URL of item to fetch - * @param array $post Attachment details - * @return array|WP_Error Local file location details on success, WP_Error otherwise - */ - function fetch_remote_file( $url, $post ) { - // extract the file name and extension from the url - $file_name = basename( $url ); - - // get placeholder file in the upload dir with a unique, sanitized filename - $upload = wp_upload_bits( $file_name, 0, '', $post['upload_date'] ); - if ( $upload['error'] ) - return new WP_Error( 'upload_dir_error', $upload['error'] ); - - // fetch the remote url and write it to the placeholder file - $remote_response = wp_safe_remote_get( $url, array( - 'timeout' => 300, - 'stream' => true, - 'filename' => $upload['file'], - ) ); - - $headers = wp_remote_retrieve_headers( $remote_response ); - - // request failed - if ( ! $headers ) { - @unlink( $upload['file'] ); - return new WP_Error( 'import_file_error', __('Remote server did not respond', 'wordpress-importer') ); - } - - $remote_response_code = wp_remote_retrieve_response_code( $remote_response ); - - // make sure the fetch was successful - if ( $remote_response_code != '200' ) { - @unlink( $upload['file'] ); - return new WP_Error( 'import_file_error', sprintf( __('Remote server returned error response %1$d %2$s', 'wordpress-importer'), esc_html($remote_response_code), get_status_header_desc($remote_response_code) ) ); - } - - $filesize = filesize( $upload['file'] ); - - if ( isset( $headers['content-length'] ) && $filesize != $headers['content-length'] ) { - @unlink( $upload['file'] ); - return new WP_Error( 'import_file_error', __('Remote file is incorrect size', 'wordpress-importer') ); - } - - if ( 0 == $filesize ) { - @unlink( $upload['file'] ); - return new WP_Error( 'import_file_error', __('Zero size file downloaded', 'wordpress-importer') ); - } - - $max_size = (int) $this->max_attachment_size(); - if ( ! empty( $max_size ) && $filesize > $max_size ) { - @unlink( $upload['file'] ); - return new WP_Error( 'import_file_error', sprintf(__('Remote file is too large, limit is %s', 'wordpress-importer'), size_format($max_size) ) ); - } - - // keep track of the old and new urls so we can substitute them later - $this->url_remap[$url] = $upload['url']; - $this->url_remap[$post['guid']] = $upload['url']; // r13735, really needed? - // keep track of the destination if the remote url is redirected somewhere else - if ( isset($headers['x-final-location']) && $headers['x-final-location'] != $url ) - $this->url_remap[$headers['x-final-location']] = $upload['url']; - - return $upload; - } - - /** - * Attempt to associate posts and menu items with previously missing parents - * - * An imported post's parent may not have been imported when it was first created - * so try again. Similarly for child menu items and menu items which were missing - * the object (e.g. post) they represent in the menu - */ - function backfill_parents() { - global $wpdb; - - // find parents for post orphans - foreach ( $this->post_orphans as $child_id => $parent_id ) { - $local_child_id = $local_parent_id = false; - if ( isset( $this->processed_posts[$child_id] ) ) - $local_child_id = $this->processed_posts[$child_id]; - if ( isset( $this->processed_posts[$parent_id] ) ) - $local_parent_id = $this->processed_posts[$parent_id]; - - if ( $local_child_id && $local_parent_id ) { - $wpdb->update( $wpdb->posts, array( 'post_parent' => $local_parent_id ), array( 'ID' => $local_child_id ), '%d', '%d' ); - clean_post_cache( $local_child_id ); - } - } - - // all other posts/terms are imported, retry menu items with missing associated object - $missing_menu_items = $this->missing_menu_items; - foreach ( $missing_menu_items as $item ) - $this->process_menu_item( $item ); - - // find parents for menu item orphans - foreach ( $this->menu_item_orphans as $child_id => $parent_id ) { - $local_child_id = $local_parent_id = 0; - if ( isset( $this->processed_menu_items[$child_id] ) ) - $local_child_id = $this->processed_menu_items[$child_id]; - if ( isset( $this->processed_menu_items[$parent_id] ) ) - $local_parent_id = $this->processed_menu_items[$parent_id]; - - if ( $local_child_id && $local_parent_id ) - update_post_meta( $local_child_id, '_menu_item_menu_item_parent', (int) $local_parent_id ); - } - } - - /** - * Use stored mapping information to update old attachment URLs - */ - function backfill_attachment_urls() { - global $wpdb; - // make sure we do the longest urls first, in case one is a substring of another - uksort( $this->url_remap, array(&$this, 'cmpr_strlen') ); - - foreach ( $this->url_remap as $from_url => $to_url ) { - // remap urls in post_content - $wpdb->query( $wpdb->prepare("UPDATE {$wpdb->posts} SET post_content = REPLACE(post_content, %s, %s)", $from_url, $to_url) ); - // remap enclosure urls - $result = $wpdb->query( $wpdb->prepare("UPDATE {$wpdb->postmeta} SET meta_value = REPLACE(meta_value, %s, %s) WHERE meta_key='enclosure'", $from_url, $to_url) ); - } - } - - /** - * Update _thumbnail_id meta to new, imported attachment IDs - */ - function remap_featured_images() { - // cycle through posts that have a featured image - foreach ( $this->featured_images as $post_id => $value ) { - if ( isset( $this->processed_posts[$value] ) ) { - $new_id = $this->processed_posts[$value]; - // only update if there's a difference - if ( $new_id != $value ) - update_post_meta( $post_id, '_thumbnail_id', $new_id ); - } - } - } - - /** - * Parse a WXR file - * - * @param string $file Path to WXR file for parsing - * @return array Information gathered from the WXR file - */ - function parse( $file ) { - $parser = new WXR_Parser(); - return $parser->parse( $file ); - } - - // Display import page title - function header() { - echo '
    '; - echo '

    ' . __( 'Import WordPress', 'wordpress-importer' ) . '

    '; - - $updates = get_plugin_updates(); - $basename = plugin_basename(__FILE__); - if ( isset( $updates[$basename] ) ) { - $update = $updates[$basename]; - echo '

    '; - printf( __( 'A new version of this importer is available. Please update to version %s to ensure compatibility with newer export files.', 'wordpress-importer' ), $update->update->new_version ); - echo '

    '; - } - } - - // Close div.wrap - function footer() { - echo '
    '; - } - - /** - * Display introductory text and file upload form - */ - function greet() { - echo '
    '; - echo '

    '.__( 'Howdy! Upload your WordPress eXtended RSS (WXR) file and we’ll import the posts, pages, comments, custom fields, categories, and tags into this site.', 'wordpress-importer' ).'

    '; - echo '

    '.__( 'Choose a WXR (.xml) file to upload, then click Upload file and import.', 'wordpress-importer' ).'

    '; - wp_import_upload_form( 'admin.php?import=wordpress&step=1' ); - echo '
    '; - } - - /** - * Decide if the given meta key maps to information we will want to import - * - * @param string $key The meta key to check - * @return string|bool The key if we do want to import, false if not - */ - function is_valid_meta_key( $key ) { - // skip attachment metadata since we'll regenerate it from scratch - // skip _edit_lock as not relevant for import - if ( in_array( $key, array( '_wp_attached_file', '_wp_attachment_metadata', '_edit_lock' ) ) ) - return false; - return $key; - } - - /** - * Decide whether or not the importer is allowed to create users. - * Default is true, can be filtered via import_allow_create_users - * - * @return bool True if creating users is allowed - */ - function allow_create_users() { - return apply_filters( 'import_allow_create_users', true ); - } - - /** - * Decide whether or not the importer should attempt to download attachment files. - * Default is true, can be filtered via import_allow_fetch_attachments. The choice - * made at the import options screen must also be true, false here hides that checkbox. - * - * @return bool True if downloading attachments is allowed - */ - function allow_fetch_attachments() { - return apply_filters( 'import_allow_fetch_attachments', true ); - } - - /** - * Decide what the maximum file size for downloaded attachments is. - * Default is 0 (unlimited), can be filtered via import_attachment_size_limit - * - * @return int Maximum attachment file size to import - */ - function max_attachment_size() { - return apply_filters( 'import_attachment_size_limit', 0 ); - } - - /** - * Added to http_request_timeout filter to force timeout at 60 seconds during import - * @return int 60 - */ - function bump_request_timeout( $val ) { - return 60; - } - - // return the difference in length between two strings - function cmpr_strlen( $a, $b ) { - return strlen($b) - strlen($a); - } -} - -} // class_exists( 'WP_Importer' ) - -function wordpress_importer_init() { - load_plugin_textdomain( 'wordpress-importer' ); - - /** - * WordPress Importer object for registering the import callback - * @global WP_Import $wp_import - */ - $GLOBALS['wp_import'] = new WP_Import(); - register_importer( 'wordpress', 'WordPress', __('Import posts, pages, comments, custom fields, categories, and tags from a WordPress export file.', 'wordpress-importer'), array( $GLOBALS['wp_import'], 'dispatch' ) ); -} -add_action( 'admin_init', 'wordpress_importer_init' ); diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/conf/config.inc.php --- a/wp/wp-content/plugins/wp-filemanager/conf/config.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,263 +0,0 @@ - "txt ini xml xsl ini inf cfg log nfo", - "layout.gif" => "html htm shtml htm pdf", - "script.gif" => "php php4 php3 phtml phps conf sh shar csh ksh tcl cgi pl js", - "image2.gif" => "jpeg jpe jpg gif png bmp", - "c.gif" => "c cpp", - "compressed.gif" => "zip tar gz tgz z ace rar arj cab bz2", - "sound2.gif" => "wav mp1 mp2 mp3 mid", - "movie.gif" => "mpeg mpg mov avi rm wmv divx", - "binary.gif" => "exe com dll bin dat rpm deb", -); - -# Files that can be edited in PHPFM's text editor - -if (trim(function_exists('get_option') && get_option('wp_fileman_editable_ext')) != "") -{ - $EditableFiles = get_option('wp_fileman_editable_ext'); -} -# Files that can be viewed in PHPFM's image viewer. -if (trim(function_exists('get_option') && get_option('wp_fileman_viewable_ext')) != "") -{ - $ViewableFiles = get_option('wp_fileman_viewable_ext'); -} - -# Format of last modification date -$ModifiedFormat = "Y-m-d H:i"; - -# Zoom levels for PHPFM's image viewer. -$ZoomArray = array( - 5, - 7, - 10, - 15, - 20, - 30, - 50, - 70, - 100, # Base zoom level (do not change) - 150, - 200, - 300, - 500, - 700, - 1000, -); - -# Hidden files and directories -if (function_exists('get_option') && get_option('wp_fileman_hidden_extension') != "") -{ - $hide_file_extension = explode(',',get_option('wp_fileman_hidden_extension')); -} -else -{ -$hide_file_extension = array( - "foo", - "bar", - ); -} - -if (function_exists('get_option') && get_option('wp_fileman_hidden_file') != "") -{ - $hide_file_string = explode(',',get_option('wp_fileman_hidden_file')); -} -else -{ -$hide_file_string = array( - ".htaccess" - ); -} -if (function_exists('get_option') && get_option('wp_fileman_hidden_dir') != "") -{ - $hide_directory_string = explode(',',get_option('wp_fileman_hidden_dir')); -} -else -{ -$hide_directory_string = array( - "secret dir", - ); -} - -$MIMEtypes = array( - "application/andrew-inset" => "ez", - "application/mac-binhex40" => "hqx", - "application/mac-compactpro" => "cpt", - "application/msword" => "doc", - "application/octet-stream" => "bin dms lha lzh exe class so dll", - "application/oda" => "oda", - "application/pdf" => "pdf", - "application/postscript" => "ai eps ps", - "application/smil" => "smi smil", - "application/vnd.ms-excel" => "xls", - "application/vnd.ms-powerpoint" => "ppt", - "application/vnd.wap.wbxml" => "wbxml", - "application/vnd.wap.wmlc" => "wmlc", - "application/vnd.wap.wmlscriptc" => "wmlsc", - "application/x-bcpio" => "bcpio", - "application/x-cdlink" => "vcd", - "application/x-chess-pgn" => "pgn", - "application/x-cpio" => "cpio", - "application/x-csh" => "csh", - "application/x-director" => "dcr dir dxr", - "application/x-dvi" => "dvi", - "application/x-futuresplash" => "spl", - "application/x-gtar" => "gtar", - "application/x-hdf" => "hdf", - "application/x-javascript" => "js", - "application/x-koan" => "skp skd skt skm", - "application/x-latex" => "latex", - "application/x-netcdf" => "nc cdf", - "application/x-sh" => "sh", - "application/x-shar" => "shar", - "application/x-shockwave-flash" => "swf", - "application/x-stuffit" => "sit", - "application/x-sv4cpio" => "sv4cpio", - "application/x-sv4crc" => "sv4crc", - "application/x-tar" => "tar", - "application/x-tcl" => "tcl", - "application/x-tex" => "tex", - "application/x-texinfo" => "texinfo texi", - "application/x-troff" => "t tr roff", - "application/x-troff-man" => "man", - "application/x-troff-me" => "me", - "application/x-troff-ms" => "ms", - "application/x-ustar" => "ustar", - "application/x-wais-source" => "src", - "application/zip" => "zip", - "audio/basic" => "au snd", - "audio/midi" => "mid midi kar", - "audio/mpeg" => "mpga mp2 mp3", - "audio/x-aiff" => "aif aiff aifc", - "audio/x-mpegurl" => "m3u", - "audio/x-pn-realaudio" => "ram rm", - "audio/x-pn-realaudio-plugin" => "rpm", - "audio/x-realaudio" => "ra", - "audio/x-wav" => "wav", - "chemical/x-pdb" => "pdb", - "chemical/x-xyz" => "xyz", - "image/bmp" => "bmp", - "image/gif" => "gif", - "image/ief" => "ief", - "image/jpeg" => "jpeg jpg jpe", - "image/png" => "png", - "image/tiff" => "tiff tif", - "image/vnd.wap.wbmp" => "wbmp", - "image/x-cmu-raster" => "ras", - "image/x-portable-anymap" => "pnm", - "image/x-portable-bitmap" => "pbm", - "image/x-portable-graymap" => "pgm", - "image/x-portable-pixmap" => "ppm", - "image/x-rgb" => "rgb", - "image/x-xbitmap" => "xbm", - "image/x-xpixmap" => "xpm", - "image/x-xwindowdump" => "xwd", - "model/iges" => "igs iges", - "model/mesh" => "msh mesh silo", - "model/vrml" => "wrl vrml", - "text/css" => "css", - "text/html" => "html htm", - "text/plain" => "asc txt", - "text/richtext" => "rtx", - "text/rtf" => "rtf", - "text/sgml" => "sgml sgm", - "text/tab-separated-values" => "tsv", - "text/vnd.wap.wml" => "wml", - "text/vnd.wap.wmlscript" => "wmls", - "text/x-setext" => "etx", - "text/xml" => "xml xsl", - "video/mpeg" => "mpeg mpg mpe", - "video/quicktime" => "qt mov", - "video/vnd.mpegurl" => "mxu", - "video/x-msvideo" => "avi", - "video/x-sgi-movie" => "movie", - "x-conference/x-cooltalk" => "ice", -); -?> diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/conf/index.html diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/fm.php --- a/wp/wp-content/plugins/wp-filemanager/fm.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,90 +0,0 @@ -"; - print ""; - - if (!(@opendir($home_directory))) - print "$StrInvalidHomeFolder"; - else if (!(@opendir($home_directory.$wp_fileman_path))) - print "$StrInvalidPath"; - if (substr($home_directory, -1) != "/") - print " $StrMissingTrailingSlash"; - - print ""; - print "
    "; - } - if (isset($_GET['action']) && is_file(WP_CONTENT_DIR . "/plugins/wp-filemanager/incl/".$_GET['action'].".inc.php") && wp_fileman_is_valid_name($_GET['action'])) - { - include(WP_CONTENT_DIR . "/plugins/wp-filemanager/incl/".basename($_GET['action']).".inc.php"); - } - else if (isset($_GET['output']) && is_file(WP_CONTENT_DIR . "/plugins/wp-filemanager/incl/".$_GET['output'].".inc.php") && wp_fileman_is_valid_name($_GET['output'])) - { - print ""; - print ""; - print "
    "; - include(WP_CONTENT_DIR . "/plugins/wp-filemanager/incl/".basename($_GET['output']).".inc.php"); - print "

    "; - include(WP_CONTENT_DIR . "/plugins/wp-filemanager/incl/filebrowser.inc.php"); - } - else - { - include(WP_CONTENT_DIR . "/plugins/wp-filemanager/incl/filebrowser.inc.php"); - } -} -else -{ - include(WP_CONTENT_DIR . "/plugins/wp-filemanager/incl/login.inc.php"); -} -//include(WP_CONTENT_DIR . "/plugins/wp-filemanager/incl/footer.inc.php"); -?> diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/back.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/back.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/binary.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/binary.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/c.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/c.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/compressed.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/compressed.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/delete.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/delete.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/download.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/download.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/drive.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/drive.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/edit.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/edit.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/file-manager.png Binary file wp/wp-content/plugins/wp-filemanager/icon/file-manager.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/folder-saved-search.png Binary file wp/wp-content/plugins/wp-filemanager/icon/folder-saved-search.png has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/folder.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/folder.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/image2.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/image2.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/index.html diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/layout.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/layout.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/logout.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/logout.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/minus.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/minus.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/movie.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/movie.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/newfile.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/newfile.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/newfolder.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/newfolder.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/next.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/next.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/original.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/original.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/plus.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/plus.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/previous.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/previous.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/rename.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/rename.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/script.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/script.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/sound2.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/sound2.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/text.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/text.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/unknown.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/unknown.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/upload.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/upload.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/valid-css.jpg Binary file wp/wp-content/plugins/wp-filemanager/icon/valid-css.jpg has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/valid-html401.jpg Binary file wp/wp-content/plugins/wp-filemanager/icon/valid-html401.jpg has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/icon/view.gif Binary file wp/wp-content/plugins/wp-filemanager/icon/view.gif has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/incl/auth.inc.php --- a/wp/wp-content/plugins/wp-filemanager/incl/auth.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -Access Denied!"); -?> diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/incl/create.inc.php --- a/wp/wp-content/plugins/wp-filemanager/incl/create.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,74 +0,0 @@ -$StrFolderInvalidName"; - else if (file_exists($home_directory.$wp_fileman_path.stripslashes($_POST['directory_name']."/"))) - print "$StrAlreadyExists"; - else if (@mkdir($home_directory.$wp_fileman_path.stripslashes($_POST['directory_name']), 0777)) - print "$StrCreateFolderSuccess"; - else - { - print "$StrCreateFolderFail

    "; - print $StrCreateFolderFailHelp; - } - @umask($umask); -} - -else if ($AllowCreateFile && isset($_GET['create']) && isset($_POST['filename'])) -{ - if (!wp_fileman_is_valid_name(stripslashes($_POST['filename']))) - print "$StrFileInvalidName"; - else if (file_exists($home_directory.$wp_fileman_path.stripslashes($_POST['filename']))) - print "$StrAlreadyExists"; - else if (@fopen($home_directory.$wp_fileman_path.stripslashes($_POST['filename']), "w+")) - print "$StrCreateFileSuccess"; - else - { - print "$StrCreateFileFail

    "; - print $StrCreateFileFailHelp; - } -} - -else if ($AllowCreateFolder || $AllowCreateFile) -{ - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print "
    "; - if ($_GET['type'] == "directory") print " $StrCreateFolder"; - else if ($_GET['type'] == "file") print " $StrCreateFile"; - print ""; - print "$StrBack"; - print "
    "; - - print "

    "; - - if ($_GET['type'] == "directory") print "$StrCreateFolderQuestion

    "; - else if ($_GET['type'] == "file") print "$StrCreateFileQuestion

    "; - print "
    "; - if ($_GET['type'] == "directory") print " "; - else if ($_GET['type'] == "file") print " "; - print ""; - print ""; - print "
    "; - - print "

    "; - - print "
    "; -} -else - print "$StrAccessDenied"; - -?> \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/incl/delete.inc.php --- a/wp/wp-content/plugins/wp-filemanager/incl/delete.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,83 +0,0 @@ -$StrFolderInvalidName"; - else if (!file_exists($home_directory.$wp_fileman_path.$directory_name)) - print "$StrDeleteFolderNotFound"; - else if (wp_fileman_remove_directory($home_directory.$wp_fileman_path.$directory_name) && @rmdir($home_directory.$wp_fileman_path.$directory_name)) - print "$StrDeleteFolderSuccess"; - else - { - print "$StrDeleteFolderFail

    "; - print $StrDeleteFolderFailHelp; - } - } - - else if (isset($_GET['delete']) && isset($_GET['filename'])) - { - if ($_GET['filename'] == ".." || ($_GET['filename'] == ".")) - print "$StrFileInvalidName"; - else if (!file_exists($home_directory.$wp_fileman_path.$filename)) - print "$StrDeleteFileNotFound"; - else if (@unlink($home_directory.$wp_fileman_path.$filename)) - print "$StrDeleteFileSuccess"; - else - { - print "$StrDeleteFileFail

    "; - print $StrDeleteFileFailHelp; - } - } - - else - { - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print "
    "; - if (isset($_GET['directory_name'])) print " $StrDeleteFolder \"".htmlentities(basename($directory_name))."\"?"; - else if (isset($_GET['filename'])) print " $StrDeleteFile \"".htmlentities($filename)."\"?"; - print ""; - print "$StrBack"; - print "
    "; - - print "

    "; - - if (isset($_GET['directory_name'])) - { - print "$StrDeleteFolderQuestion

    "; - print "/".htmlentities($wp_fileman_path.$directory_name); - } - else if (isset($_GET['filename'])) - { - print "$StrDeleteFileQuestion

    "; - print "/".htmlentities($wp_fileman_path.$filename); - } - - print "

    "; - - if (isset($_GET['directory_name'])) print "$StrYes"; - else if (isset($_GET['filename'])) print "$StrYes"; - print " $StrOr "; - print "$StrCancel"; - - print "

    "; - - print "
    "; - } -} -else - print "$StrAccessDenied"; - -?> diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/incl/download.inc.php --- a/wp/wp-content/plugins/wp-filemanager/incl/download.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,71 +0,0 @@ -$StrAccessDenied"; - exit(); - } - -// header("Content-Type: ".get_mimetype($filename)); -// header("Content-Length: ".filesize($fullpath)); -// if ($_GET['action'] == "download"); - // header("Content-Disposition: attachment; filename=$filename"); - -// readfile($fullpath); -} - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print "
    "; - print " $StrDownload \"".htmlentities($filename)."\""; - print ""; - print "$StrBack"; - print "
    "; - print "

    "; - print "$StrDownloadClickLink

    "; - print "$StrDownloadClickHere \"".htmlentities($filename)."\""; - print "

    "; - print "
    "; -} -else - print "$StrAccessDenied"; -*/ -?> diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/incl/edit.inc.php --- a/wp/wp-content/plugins/wp-filemanager/incl/edit.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,119 +0,0 @@ -$StrFileInvalidName"; - } - else if ($fp = @fopen ($home_directory.$wp_fileman_path.stripslashes($_POST['filename']), "wb")) - { - @fwrite($fp, $text); - @fclose($fp); - print "$StrSaveFileSuccess"; - } - else - print "$StrSaveFileFail"; -} -else if ($AllowEdit && isset($_GET['filename'])) -{ - $file_name = explode('.',$_GET['filename']); - if ($file_name[1] == 'js') - { - $file_name[1] = 'javascript'; - } -// wp_enqueue_script('jquery'); -// wp_enqueue_script('codepress'); - -/* - - - -*/ - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print "
    "; - print " $StrEditing \"".htmlentities($filename)."\""; - print ""; - print "$StrBack"; - print "
    "; - - print "

    "; - - if ($fp = @fopen($home_directory.$wp_fileman_path.$filename, "rb")) - { - print "
    "; -// print ""; - //print "Code Editor"; - print "\n"; - - print "

    "; - print "$StrFilename "; - - print "

    "; - print " "; - - print ""; - print "
    "; - } - else - print "$StrErrorOpeningFile"; - - print "

    "; - - print "
    "; -} -else - print "$StrAccessDenied"; -?> diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/incl/filebrowser.inc.php --- a/wp/wp-content/plugins/wp-filemanager/incl/filebrowser.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,174 +0,0 @@ -

    Please configure the Plugin

    "; -} -else -{ - print "

    Wordpress FileManager

    "; -} -#else -#{ -# print get_option('wp_fileman_home'); -# print "
    ".get_linked_path($wp_fileman_path,$base_url)."
    ".$wp_fileman_path."
    ".$base_url; -#} -print ""; - print ""; - if ($AllowCreateFolder) print ""; - if ($AllowCreateFile) print ""; - if ($AllowUpload) print ""; - if ($phpfm_auth) print ""; - print ""; -print "
    "; - -print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; -print "
    "; - print "$StrIndexOf ".wp_fileman_get_linked_path($wp_fileman_path,$base_url).""; - print "
     "; - - - - if ($open = @opendir($home_directory.$wp_fileman_path)) - { - for($i=0;($directory = @readdir($open)) != FALSE;$i++) - if (is_dir($home_directory.$wp_fileman_path.$directory) && $directory != "." && $directory != ".." && !wp_fileman_is_hidden_directory($home_directory.$wp_fileman_path.$directory)) - $directories[$i] = array($directory,$directory); - closedir($open); - - if (isset($directories)) - { - sort($directories); - @reset($directories); - } - } - - print ""; - print ""; - print ""; - print ""; - if ($AllowRename) print ""; - if ($AllowDelete) print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - if (isset($directories)) foreach($directories as $directory) - { - print ""; - print ""; - print ""; - if ($AllowRename) print ""; - if ($AllowDelete) print ""; - print ""; - } - print ""; - print "
      $StrFolderNameShort$StrRenameShort$StrDeleteShort
    $StrOpenFolder .  
    $StrOpenFolder ..  
    $StrOpenFolder ".htmlentities($directory[0])."$StrRenameFolder$StrDeleteFolder
     
    "; - - print "
     "; - - - - if ($open = @opendir($home_directory.$wp_fileman_path)) - { - for($i=0;($file = @readdir($open)) != FALSE;$i++) - if (is_file($home_directory.$wp_fileman_path.$file) && !wp_fileman_is_hidden_file($home_directory.$wp_fileman_path.$file)) - { - $icon = wp_fileman_get_icon($file); - $filesize = filesize($home_directory.$wp_fileman_path.$file); - $permissions = decoct(fileperms($home_directory.$wp_fileman_path.$file)%01000); - $modified = filemtime($home_directory.$wp_fileman_path.$file); - $extension = ""; - $files[$i] = array( - "icon" => $icon, - "filename" => $file, - "filesize" => $filesize, - "permissions" => $permissions, - "modified" => $modified, - "extension" => $extension, - ); - } - closedir($open); - - if (isset($files)) - { - @usort($files, "wp_fileman_compare_filedata"); - @reset($files); - } - } - - print ""; - print ""; - print ""; - print ""; - print ""; - if ($AllowView) print ""; - if ($AllowEdit) print ""; - if ($AllowRename) print ""; - if ($AllowDownload) print ""; - if ($AllowDelete) print ""; - print ""; - if (isset($files)) foreach($files as $file) - { - $file['filesize'] = wp_fileman_get_better_filesize($file['filesize']); - $file['modified'] = date($ModifiedFormat, $file['modified']); - - print ""; - print ""; -/* if ($ShowExtension) print ""; - else - { - $f_nm = explode('.',htmlentities($file['filename'])); - print ""; - }*/ - $f_nm = explode('.',htmlentities($file['filename'])); - //print $f_nm[1]; - print ""; - print ""; - if ($AllowView && wp_fileman_is_viewable_file($file['filename'])) print ""; - else if ($AllowView) print ""; -// echo get_option('siteurl'); /wp-admin/admin-ajax.php?action=choice&width=150&height=100" title="Choice" - if ($AllowEdit && wp_fileman_is_editable_file($file['filename'])) print ""; -// if ($AllowEdit && is_editable_file($file['filename'])) print ""; - else if ($AllowEdit) print ""; - if ($AllowRename) print ""; -// if ($AllowRename) print ""; -// if ($AllowDownload) print ""; -// if ($AllowDownload) print ""; - if ($AllowDownload) print ""; - if ($AllowDelete) print ""; - print ""; - - } - print ""; - print "
      $StrFileNameShort$StrFileSizeShort$StrViewShort$StrEditShort$StrRenameShort$StrDownloadShort$StrDeleteShort
    $StrFile ".htmlentities($file['filename'])." " . $f_nm[0] . " ".$f_nm[0]; - if ($ShowExtension) print "." . $f_nm[1]; - print "".$file['filesize']."$StrViewFile $StrEditFile$StrEditFile $StrRenameFile$StrRenameFile$StrDownloadFile$StrDownloadFile$StrDownloadFile$StrDeleteFile
     
    "; - - - print "
    "; -?> diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/incl/functions.inc.php --- a/wp/wp-content/plugins/wp-filemanager/incl/functions.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,263 +0,0 @@ - $b[$_GET['sortby']]) return 1; - else return -1; - } - else if ($_GET['order'] == "desc") - { - if ($a[$_GET['sortby']] < $b[$_GET['sortby']]) return 1; - else return -1; - } - } - - else if (is_string($a[$_GET['sortby']]) && is_string($b[$_GET['sortby']]) && $_GET['order'] == "asc") - return strcmp($a[$_GET['sortby']], $b[$_GET['sortby']]); - else if (is_string($a[$_GET['sortby']]) && is_string($b[$_GET['sortby']]) && $_GET['order'] == "desc") - return -strcmp($a[$_GET['sortby']], $b[$_GET['sortby']]); -} - -function wp_fileman_get_opposite_order($input, $order) ## Get opposite order -{ - if ($_GET['sortby'] == $input) - { - if ($order == "asc") - return "desc"; - else if ($order == "desc") - return "asc"; - } - else - return "asc"; -} - -function wp_fileman_is_editable_file($filename) ## Checks whether a file is editable -{ - global $EditableFiles; - - $extension = strtolower(substr(strrchr($filename, "."),1)); - - foreach(explode(",", $EditableFiles) as $type) - if ($extension == $type) - return TRUE; - - return FALSE; -} - -function wp_fileman_is_viewable_file($filename) ## Checks whether a file is viewable -{ - global $ViewableFiles; - - $extension = strtolower(substr(strrchr($filename, "."),1)); - - foreach(explode(",", $ViewableFiles) as $type) - if ($extension == $type) - return TRUE; - - return FALSE; -} - -function wp_fileman_is_valid_name($input) ## Checks whether the directory- or filename is valid -{ - if (strstr($input, "\\")) - return FALSE; - else if (strstr($input, "/")) - return FALSE; - else if (strstr($input, ":")) - return FALSE; - else if (strstr($input, "?")) - return FALSE; - else if (strstr($input, "*")) - return FALSE; - else if (strstr($input, "\"")) - return FALSE; - else if (strstr($input, "<")) - return FALSE; - else if (strstr($input, ">")) - return FALSE; - else if (strstr($input, "|")) - return FALSE; - else - return TRUE; -} - -function wp_fileman_get_better_filesize($filesize) ## Converts filesize to KB/MB/GB/TB -{ - $kilobyte = 1024; - $megabyte = 1048576; - $gigabyte = 1073741824; - $terabyte = 1099511627776; - - if ($filesize >= $terabyte) - return number_format($filesize/$terabyte, 2, ',', '.')." TB"; - else if ($filesize >= $gigabyte) - return number_format($filesize/$gigabyte, 2, ',', '.')." GB"; - else if ($filesize >= $megabyte) - return number_format($filesize/$megabyte, 2, ',', '.')." MB"; - else if ($filesize >= $kilobyte) - return number_format($filesize/$kilobyte, 2, ',', '.')." KB"; - else - return number_format($filesize, 0, ',', '.')." B"; -} - -function wp_fileman_get_current_zoom_level($current_zoom_level, $zoom) ## Get current zoom level -{ - global $ZoomArray; - - @reset($ZoomArray); - - while(list($number, $zoom_level) = each($ZoomArray)) - if ($zoom_level == $current_zoom_level) - if (($number+$zoom) < 0) return $number; - else if (($number+$zoom) >= count($ZoomArray)) return $number; - else return $number+$zoom; -} - -function wp_fileman_validate_path($wp_fileman_path) ## Validate path -{ - global $StrAccessDenied; - - if (stristr($wp_fileman_path, "../") || stristr($wp_fileman_path, "..\\")) - return TRUE; - else - return stripslashes($wp_fileman_path); -} - -function wp_fileman_authenticate_user() ## Authenticate user using cookies -{ - global $username, $password; - - if (isset($_COOKIE['cookie_username']) && $_COOKIE['cookie_username'] == $username && isset($_COOKIE['cookie_password']) && $_COOKIE['cookie_password'] == md5($password)) - return TRUE; - else - return FALSE; -} - -function wp_fileman_is_hidden_file($wp_fileman_path) ## Checks whether the file is hidden. -{ - global $hide_file_extension, $hide_file_string, $hide_directory_string; - - $extension = strtolower(substr(strrchr($wp_fileman_path, "."),1)); - - if (is_array($hide_file_extension)) - { - foreach ($hide_file_extension as $hidden_extension) - { - if ($hidden_extension == $extension) - { - return TRUE; - } - } - } - if (is_array($hide_file_string)) - { - foreach ($hide_file_string as $hidden_string) - { - if ($hidden_string != "" && stristr(basename($wp_fileman_path), $hidden_string)) - { - return TRUE; -} -} -} - return FALSE; -} - -function wp_fileman_is_hidden_directory($wp_fileman_path) ## Checks whether the directory is hidden. -{ - global $hide_directory_string; - - if (is_array($hide_directory_string)) - foreach ($hide_directory_string as $hidden_string) - if ($hidden_string != "" && stristr($wp_fileman_path, $hidden_string)) - return TRUE; - - return FALSE; -} - -function wp_fileman_get_mimetype($filename) ## Get MIME-type for file -{ - global $MIMEtypes; - @reset($MIMEtypes); - $extension = strtolower(substr(strrchr($filename, "."),1)); - if ($extension == "") - return "Unknown/Unknown"; - while (list($mimetype, $file_extensions) = each($MIMEtypes)) - foreach (explode(" ", $file_extensions) as $file_extension) - if ($extension == $file_extension) - return $mimetype; - - return "Unknown/Unknown"; -} - -function wp_fileman_get_linked_path($wp_fileman_path,$base_url) ## Get path with links to each folder -{ - $string = ". / "; - $array = explode("/",htmlentities($wp_fileman_path)); - unset($array[count($array)-1]); - foreach ($array as $entry) - { - @$temppath .= $entry."/"; - $string .= "$entry / "; - } - - return $string; -} -?> \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/incl/header.inc.php --- a/wp/wp-content/plugins/wp-filemanager/incl/header.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ - \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/incl/html.header.inc.php --- a/wp/wp-content/plugins/wp-filemanager/incl/html.header.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -"; - print "
    "; - print "
    "; -?> \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/incl/index.html diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/incl/libfile.php --- a/wp/wp-content/plugins/wp-filemanager/incl/libfile.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,75 +0,0 @@ -"; -print_r($_GET); -echo "";*/ -/*if ($AllowDownload || $AllowView) -{ -//echo "Download Allowed"; -/* if (is_file("../../../" . $home_directory . $wp_fileman_path.$filename)) - { - echo "File Found"; - } - else - { - echo "Path : " . $home_directory . " & ".$wp_fileman_path . " & " .$filename; - } - */ - /*if (isset($_GET['filename']) && isset($_GET['action']) && is_file($home_directory.$wp_fileman_path.$filename) || is_file("../../../".$home_directory.$wp_fileman_path.$filename)) - { -// echo "file found"; - if (is_file($home_directory.$wp_fileman_path.$filename) && !strstr($home_directory, "./") && !strstr($home_directory, ".\\")) - $fullpath = $home_directory.$wp_fileman_path.$filename; - else if (is_file("../../../".$home_directory.$wp_fileman_path.$filename)) - $fullpath = "../../../".$home_directory.$wp_fileman_path.$filename; -//echo $fullpath; - if (!$AllowDownload && $AllowView && !is_viewable_file($filename)) - { - print "$StrAccessDenied"; - exit(); - } - header("Content-Type: ".get_mimetype($filename)); - header("Content-Length: ".filesize($fullpath)); - if ($_GET['action'] == "download"); - header("Content-Disposition: attachment; filename=$filename"); - readfile($fullpath); - } - else - print "$StrDownloadFail"; -}*/ -?> \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/incl/phpfm.css --- a/wp/wp-content/plugins/wp-filemanager/incl/phpfm.css Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -font.headline { font-family : Tahoma, serif; font-size : 25pt; color : #000000; font-weight : bold; background-color: transparent; } -font.iheadline { font-family : Tahoma, serif; font-size : 10pt; color : #FFFFFF; font-weight : bold; background-color: transparent; } -table.top { width: 100%; background-color: transparent; } -table.bottom { width: 100%; border-top : 1px solid #000000; font-family : Tahoma, serif; font-size : 8pt; background-color: transparent; } -table.index { background-color : #F4F4F4; color : #000000; border : 1px solid #000000; font-family : Tahoma, serif; font-size : 8pt; } -table.directories { font-family : Tahoma, serif; font-size : 10pt; background-color: transparent; } -table.files { - font-family : Tahoma, serif; - font-size : 10pt; - background-color: transparent; - text-align: left; -} -table.menu { font-family : Tahoma, serif; font-size : 10pt; background-color: transparent; } -table.upload { font-family : Tahoma, serif; font-size : 8pt; background-color: transparent; } -table.output { font-family : Tahoma, serif; font-size : 8pt; background-color : #EEEEEE; color : #000000; } -td.iheadline { background-color : #6699CC; border-bottom : 1px solid #000000; } -td.fbborder { border-right : 1px solid #000000; background-color: transparent; } -input { background-color : #DDDDDD; border : 1px solid #000000; font-family : Tahoma, serif; font-size : 8pt; color : #000000; } -input.button { width : 50px; } -input.bigbutton { width : 100px; } -textarea { background-color : #FFFFFF; color : #000000; border : 1px solid #000000; font-family : Tahoma, serif; font-size : 10pt; } -.bold { font-weight : bold; background-color: transparent; } \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/incl/rename.inc.php --- a/wp/wp-content/plugins/wp-filemanager/incl/rename.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,82 +0,0 @@ -$StrFolderInvalidName"; - else if (@file_exists($home_directory.$wp_fileman_path.$new_directory_name)) - print "$StrAlreadyExists"; - else if (@rename($home_directory.$wp_fileman_path.$directory_name, $home_directory.$wp_fileman_path.$new_directory_name)) - print "$StrRenameFolderSuccess"; - else - { - print "$StrRenameFolderFail

    "; - print $StrRenameFolderFailHelp; - } - } - - else if (isset($_GET['rename']) && isset($_POST['filename'])) - { - $filename = stripslashes($_POST['filename']); - if (!wp_fileman_is_valid_name($new_filename)) - print "$StrFileInvalidName"; - else if (@file_exists($home_directory.$wp_fileman_path.$new_filename)) - print "$StrAlreadyExists"; - else if (@rename($home_directory.$wp_fileman_path.$filename, $home_directory.$wp_fileman_path.$new_filename)) - print "$StrRenameFileSuccess"; - else - { - echo $home_directory.$wp_fileman_path.$filename; - //print rename($home_directory.$wp_fileman_path.$filename, $home_directory.$wp_fileman_path.$new_filename); - print "$StrRenameFileFail

    "; - print $StrRenameFileFailHelp; - } - } - - else - { - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print "
    "; - if (isset($_GET['directory_name'])) print " $StrRenameFolder \"".htmlentities(basename($directory_name))."\""; - else if (isset($_GET['filename'])) print " $StrRenameFile \"".htmlentities(stripslashes($_GET['filename']))."\""; - print ""; - print "$StrBack"; - print "
    "; - - print "

    "; - - if (isset($_GET['directory_name'])) print "$StrRenameFolderQuestion

    "; - else if (isset($_GET['filename'])) print "$StrRenameFileQuestion

    "; - print "
    "; - if (isset($_GET['directory_name'])) print " "; - else if (isset($_GET['filename'])) print " "; - print ""; - if (isset($_GET['directory_name'])) print ""; - else if (isset($_GET['filename'])) print ""; - print ""; - print "
    "; - - print "

    "; - - print "
    "; - } -} -else - print "$StrAccessDenied"; - -?> diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/incl/upload.inc.php --- a/wp/wp-content/plugins/wp-filemanager/incl/upload.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,77 +0,0 @@ -"; - - if (!isset($_FILES['userfile'])) - // maximum post size reached - print $StrUploadFailPost; - else - { - for($i=0;$i$StrUploading ".$_FILES['userfile']['name'][$i]."[$StrUploadSuccess]"; -$new_file = @realpath($home_directory.$wp_fileman_path).'/'.$_FILES['userfile']['name'][$i]; -$stat = @stat( dirname( $new_file )); -$perms = $stat['mode'] & 0000666; -@chmod( $new_file, $perms ); - } else if ($_FILES['userfile']['name'][$i]) - print "$StrUploading ".$_FILES['userfile']['name'][$i]."[$StrUploadFail]"; - } - } - print ""; -} - -else if ($AllowUpload) -{ - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print "
    "; - print " $StrUploadFilesTo \"/".htmlentities($wp_fileman_path)."\""; - print ""; - print "$StrBack"; - print "
    "; -$max_upload = (int)(ini_get('upload_max_filesize')); -$max_post = (int)(ini_get('post_max_size')); -$memory_limit = (int)(ini_get('memory_limit')); -$upload_mb = min($max_upload, $max_post, $memory_limit); -$max_files = (int)(ini_get('max_file_uploads')); - -// print "MAX UPload : $max_upload MB, MAX POST : $max_post MB, MEM LIMIT : $memory_limit MB"; -print "
      Maximum File Size Allowed : $upload_mb MB"; -print "
      Maximum Number of Files Allowed : $max_files"; -// FIXME : add link to howto on how to change the upload size. - print "

    "; - - - print "$StrUploadQuestion
    "; - print "
    "; - - print ""; - print ""; - print "
    $StrFirstFile
    "; - - print ""; - print ""; - print "
    "; - print "

    "; - - print "
    "; -} -else - print "$StrAccessDenied"; - -?> \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/incl/view.inc.php --- a/wp/wp-content/plugins/wp-filemanager/incl/view.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,92 +0,0 @@ -"; - print ""; - print ""; - print " $StrViewing \"".htmlentities($filename)."\" $StrAt ".$_GET['size']."%"; - print ""; - print ""; - print "$StrBack"; - print ""; - print ""; - print ""; - print ""; - - print "

    "; - - if (is_file($home_directory.$wp_fileman_path.$filename) && wp_fileman_is_viewable_file($filename)) - { - $image_info = GetImageSize($home_directory.$wp_fileman_path.$filename); - $size = $_GET['size']; - $zoom_in = $ZoomArray[wp_fileman_get_current_zoom_level($size, 1)]; - $zoom_out = $ZoomArray[wp_fileman_get_current_zoom_level($size, -1)]; - $width = $image_info[0] * $size / 100; - $height = $image_info[1] * $size / 100; - - $files = array(); - if ($open = @opendir($home_directory.$wp_fileman_path)) - { - while ($file = @readdir($open)) - if (is_file($home_directory.$wp_fileman_path.$file) && wp_fileman_is_viewable_file($file)) - $files[] = $file; - closedir($open); - sort($files); - - if (count($files)>1) - { - for($i=0;$files[$i]!=$filename;$i++); - if ($i==0) $prev = $files[$i+count($files)-1]; - else $prev = $files[$i-1]; - if ($i==(count($files)-1)) $next = $files[$i-count($files)+1]; - else $next = $files[$i+1]; - } - else - { - $prev = $filename; - $next = $filename; - } - } - - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print "
    "; - //echo base - //print "$StrImage"; - if (is_file($home_directory.$wp_fileman_path.$filename)) - $fullpath = $home_directory.$wp_fileman_path.$filename; - - //$file_data=readfile($fullpath); - print "$StrImage"; - } - else - { - print "$StrViewFail

    "; - print "$StrViewFailHelp"; - } - - print "

    "; - - print ""; - print ""; - print ""; - - print ""; -} -else - print "$StrAccessDenied"; - -?> \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/index.html diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/lang/bulgarian.inc.php --- a/wp/wp-content/plugins/wp-filemanager/lang/bulgarian.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,128 +0,0 @@ - diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/lang/czech.inc.php --- a/wp/wp-content/plugins/wp-filemanager/lang/czech.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,128 +0,0 @@ - diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/lang/danish.inc.php --- a/wp/wp-content/plugins/wp-filemanager/lang/danish.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,127 +0,0 @@ - \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/lang/dutch.inc.php --- a/wp/wp-content/plugins/wp-filemanager/lang/dutch.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,128 +0,0 @@ - \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/lang/english.inc.php --- a/wp/wp-content/plugins/wp-filemanager/lang/english.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,127 +0,0 @@ - \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/lang/finnish.inc.php --- a/wp/wp-content/plugins/wp-filemanager/lang/finnish.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,128 +0,0 @@ - \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/lang/french.inc.php --- a/wp/wp-content/plugins/wp-filemanager/lang/french.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,128 +0,0 @@ - \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/lang/french2.inc.php --- a/wp/wp-content/plugins/wp-filemanager/lang/french2.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,128 +0,0 @@ - \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/lang/german.inc.php --- a/wp/wp-content/plugins/wp-filemanager/lang/german.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,128 +0,0 @@ - \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/lang/germaniso.inc.php --- a/wp/wp-content/plugins/wp-filemanager/lang/germaniso.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,128 +0,0 @@ - \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/lang/hungarian.inc.php --- a/wp/wp-content/plugins/wp-filemanager/lang/hungarian.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,128 +0,0 @@ - \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/lang/index.html diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/lang/italian.inc.php --- a/wp/wp-content/plugins/wp-filemanager/lang/italian.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,128 +0,0 @@ - \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/lang/portugues.inc.php --- a/wp/wp-content/plugins/wp-filemanager/lang/portugues.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,128 +0,0 @@ - \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/lang/russian.inc.php --- a/wp/wp-content/plugins/wp-filemanager/lang/russian.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,128 +0,0 @@ - \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/lang/spanish.inc.php --- a/wp/wp-content/plugins/wp-filemanager/lang/spanish.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,128 +0,0 @@ - \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/license.txt --- a/wp/wp-content/plugins/wp-filemanager/license.txt Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,278 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/readme.txt --- a/wp/wp-content/plugins/wp-filemanager/readme.txt Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,90 +0,0 @@ -=== wp-FileManager === -Contributors: anantshri, johannesries -Tags: change, upload, organize, delete, management, file -Requires at least: 3.2 -Tested up to: 3.5.1 -Stable tag: 1.4.0 -License: GPLv2 or later -License URI: http://www.gnu.org/licenses/gpl-2.0.html - -FileManager for WordPress allows you to easily change, delete, organize and upload files. - -== Description == - -WP-Filemanager is your one stop solution for all file management work right from the wordpress admin page. - -Following features are present as of now. - -* Create File, Folder -* Upload ,Download file -* View, Edit files -* rename an delete files -* Configuration menu inside WP-admin panel - -More features to be added soon. - -* Code editor for script fles -* WYSIWYG editors for html files -* Image editor for image files - - -== Upgrade Notice == - -This version fixes a security issue as well as multiple long standing usability bugs, errors and warnings. Upgrade immediately. - - -== Installation == - -1. Extract the zip file and just drop the contents in the wp-content/plugins/ directory -2. Activate the plugin through the \'Plugins\' menu in WordPress. -3. Update configuration (most importantly home_directory) and select relevent options. -4. Check under the admin section last menu in sidebar will be FileManager. - - -== Frequently Asked Questions == - -For any questions please use the comments function at this page. for old questions refer this - - -== Screenshots == -1. WP-FileManager home directory view -2. WP-FileManager configuration panel - -== Changelog == -1.4.0 - -* Fix of a Security Issue caused by arbitrary file download vulnerability. -* View and download of file is now restricted inside wp-admin and hence visible only for admin roles. -* Added index file on all pages to disable accidental diretory browsing. -* Support is upped to 3.5.1 but minimum is advanced to 3.2 now. No point supporting so old releases. -* Added protection on all files to protect from direct access. -* Added code to prevent overall in function names with other plugin. -* Codepress support removed as wordpress has stopped supporting it. (might add something later) -* now supports HTML multiupload : patch submitted by thpani : http://profiles.wordpress.org/thpani/ -* rename function issue resolved. - - -1.3.0 - -* Bug Fixes and stable release. -* Warning's removed. - -1.2.8 - -* Download and View errors removed and now working fine. - -1.2.6 - -* Codepress Implemented for Editing panel. -* plugin works directly from wp-content folder. -* Admin page for plugin started construction. -* Hide extension option is added in file browser view. - - -1.2.2 - -* fixed the readme -* added Czech translation by Petr Sahula - - -WP-FileManager bases on PHPFM, GION Icons and original work by Joe Schmoe. \ No newline at end of file diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/screenshot-1.jpg Binary file wp/wp-content/plugins/wp-filemanager/screenshot-1.jpg has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/screenshot-2.jpg Binary file wp/wp-content/plugins/wp-filemanager/screenshot-2.jpg has changed diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/wp-filemanager.php --- a/wp/wp-content/plugins/wp-filemanager/wp-filemanager.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,124 +0,0 @@ - diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/wp_filemanager_admin.php --- a/wp/wp-content/plugins/wp-filemanager/wp_filemanager_admin.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,53 +0,0 @@ - -

    WP-Filemanager Admin panel

    -
    - -

    - -
    - -
    -
    \n"; - $str_final = $str_final . $st . ','; -} - $str_final = $str_final . $st . ','; -?> -

    -Values to be listed in comma seperate list. [Default values are listed for your reference] -

    -
    -Default Editable File Extensions List : php,php4,php3,phtml,phps,conf,sh,shar,csh,ksh,tcl,cgi,pl,js,txt,ini,html,htm,css,xml,xsl,ini,inf,cfg,log,nfo,bat,htaccess
    -
    -Default List of Viewable Files : jpeg,jpe,jpg,gif,png,bmp
    -
    -Default Hidden File List : htacess
    - -
    Default Hiddden File Extension : foo,bar
    - -
    Default Hidden Directory List : some_dir,wp-admin
    - - - - -
    -
    \ No newline at end of file