Version Description
- updated .on method
- removed php4 constructor
- added DE and RU languages
Download this release
Release Info
Developer | baden03 |
Plugin | Collapse-O-Matic |
Version | 1.5.4 |
Comparing to | |
See all releases |
Code changes from version 1.5.3 to 1.5.4
- collapse-o-matic.php +5 -27
- images/collapse-o-matic-icon.png +0 -0
- js/collapse.js +6 -7
- js/collapse.min.js +0 -1
- languages/colomat_de.mo +0 -0
- languages/colomat_de.po +161 -0
- languages/colomat_ru.mo +0 -0
- languages/colomat_ru.po +141 -0
- readme.txt +13 -3
collapse-o-matic.php
CHANGED
@@ -5,7 +5,7 @@ Text Domain: colomat
|
|
5 |
Domain Path: /languages
|
6 |
Plugin URI: http://plugins.twinpictures.de/plugins/collapse-o-matic/
|
7 |
Description: Collapse-O-Matic adds an [expand] shortcode that wraps content into a lovely, jQuery collapsible div.
|
8 |
-
Version: 1.5.
|
9 |
Author: twinpictures, baden03
|
10 |
Author URI: http://twinpictures.de/
|
11 |
License: GPL2
|
@@ -23,7 +23,7 @@ class WP_Collapse_O_Matic {
|
|
23 |
* Current version
|
24 |
* @var string
|
25 |
*/
|
26 |
-
var $version = '1.5.
|
27 |
|
28 |
/**
|
29 |
* Used as prefix for options entry
|
@@ -48,13 +48,6 @@ class WP_Collapse_O_Matic {
|
|
48 |
'custom_css' => ''
|
49 |
);
|
50 |
|
51 |
-
/**
|
52 |
-
* PHP4 constructor
|
53 |
-
*/
|
54 |
-
function WP_Collapse_O_Matic() {
|
55 |
-
$this->__construct();
|
56 |
-
}
|
57 |
-
|
58 |
/**
|
59 |
* PHP5 constructor
|
60 |
*/
|
@@ -65,12 +58,6 @@ class WP_Collapse_O_Matic {
|
|
65 |
// load text domain for translations
|
66 |
load_plugin_textdomain( 'colomat', FALSE, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
67 |
|
68 |
-
// set uninstall hook
|
69 |
-
/* removed in version 1.5.2
|
70 |
-
if ( function_exists( 'register_deactivation_hook' ) )
|
71 |
-
register_deactivation_hook( __FILE__, array( $this, 'deactivation' ));
|
72 |
-
*/
|
73 |
-
|
74 |
//load the script and style if not viwing the dashboard
|
75 |
if (!is_admin()){
|
76 |
add_action('init', array( $this, 'collapsTronicInit' ) );
|
@@ -114,12 +101,12 @@ class WP_Collapse_O_Matic {
|
|
114 |
wp_enqueue_script('jquery');
|
115 |
|
116 |
//collapse script
|
117 |
-
wp_register_script('collapseomatic-js', plugins_url('js/collapse.min.js', __FILE__), array('jquery'), '1.5.
|
118 |
-
|
119 |
wp_enqueue_script('collapseomatic-js');
|
120 |
|
121 |
//css
|
122 |
-
wp_register_style( 'collapseomatic-css', plugins_url('/'.$this->options['style'].'_style.css', __FILE__) , array (), '1.5.
|
123 |
wp_enqueue_style( 'collapseomatic-css' );
|
124 |
}
|
125 |
|
@@ -429,15 +416,6 @@ class WP_Collapse_O_Matic {
|
|
429 |
</div>
|
430 |
<?php
|
431 |
}
|
432 |
-
|
433 |
-
/**
|
434 |
-
* Deactivation plugin method
|
435 |
-
* Removed in version 1.5.2
|
436 |
-
function deactivation() {
|
437 |
-
delete_option( $this->options_name );
|
438 |
-
unregister_setting( $this->domain, $this->options_name );
|
439 |
-
}
|
440 |
-
*/
|
441 |
|
442 |
/**
|
443 |
* Set options from save values or defaults
|
5 |
Domain Path: /languages
|
6 |
Plugin URI: http://plugins.twinpictures.de/plugins/collapse-o-matic/
|
7 |
Description: Collapse-O-Matic adds an [expand] shortcode that wraps content into a lovely, jQuery collapsible div.
|
8 |
+
Version: 1.5.4
|
9 |
Author: twinpictures, baden03
|
10 |
Author URI: http://twinpictures.de/
|
11 |
License: GPL2
|
23 |
* Current version
|
24 |
* @var string
|
25 |
*/
|
26 |
+
var $version = '1.5.4';
|
27 |
|
28 |
/**
|
29 |
* Used as prefix for options entry
|
48 |
'custom_css' => ''
|
49 |
);
|
50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
/**
|
52 |
* PHP5 constructor
|
53 |
*/
|
58 |
// load text domain for translations
|
59 |
load_plugin_textdomain( 'colomat', FALSE, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
//load the script and style if not viwing the dashboard
|
62 |
if (!is_admin()){
|
63 |
add_action('init', array( $this, 'collapsTronicInit' ) );
|
101 |
wp_enqueue_script('jquery');
|
102 |
|
103 |
//collapse script
|
104 |
+
//wp_register_script('collapseomatic-js', plugins_url('js/collapse.min.js', __FILE__), array('jquery'), '1.5.4');
|
105 |
+
wp_register_script('collapseomatic-js', plugins_url('js/collapse.js', __FILE__), array('jquery'), '1.5.4');
|
106 |
wp_enqueue_script('collapseomatic-js');
|
107 |
|
108 |
//css
|
109 |
+
wp_register_style( 'collapseomatic-css', plugins_url('/'.$this->options['style'].'_style.css', __FILE__) , array (), '1.5.4' );
|
110 |
wp_enqueue_style( 'collapseomatic-css' );
|
111 |
}
|
112 |
|
416 |
</div>
|
417 |
<?php
|
418 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
419 |
|
420 |
/**
|
421 |
* Set options from save values or defaults
|
images/collapse-o-matic-icon.png
ADDED
Binary file
|
js/collapse.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*!
|
2 |
-
* Collapse-O-Matic v1.5.
|
3 |
* http://plugins.twinpictures.de/plugins/collapse-o-matic/
|
4 |
*
|
5 |
* Copyright 2013, Twinpictures
|
@@ -238,7 +238,7 @@ jQuery(document).ready(function() {
|
|
238 |
}, '.collapseomatic'); //pass the element as an argument to .on
|
239 |
|
240 |
//the main collapse/expand function
|
241 |
-
jQuery(
|
242 |
var offset_top;
|
243 |
|
244 |
//alert('phones ringin dude');
|
@@ -381,7 +381,7 @@ jQuery(document).ready(function() {
|
|
381 |
|
382 |
});
|
383 |
|
384 |
-
jQuery(
|
385 |
if(jQuery(this).attr('rel') !== undefined){
|
386 |
var rel = jQuery(this).attr('rel');
|
387 |
jQuery('.collapseomatic[rel="' + rel +'"].collapseomatic:not(.colomat-close)').each(function(index) {
|
@@ -459,7 +459,7 @@ jQuery(document).ready(function() {
|
|
459 |
}
|
460 |
});
|
461 |
|
462 |
-
jQuery(
|
463 |
if(jQuery(this).attr('rel') !== undefined){
|
464 |
var rel = jQuery(this).attr('rel');
|
465 |
jQuery('.collapseomatic[rel="' + rel +'"].collapseomatic.colomat-close').each(function(index) {
|
@@ -567,7 +567,7 @@ jQuery(document).ready(function() {
|
|
567 |
}
|
568 |
|
569 |
//handle anchor links within the same page
|
570 |
-
jQuery(
|
571 |
event.preventDefault();
|
572 |
var fullurl = jQuery(this).attr('href');
|
573 |
if (fullurl.match('#')) { // the URL contains an anchor
|
@@ -597,8 +597,7 @@ jQuery(document).ready(function() {
|
|
597 |
}
|
598 |
});
|
599 |
|
600 |
-
|
601 |
-
jQuery('a.colomat-nolink').on('click', function(event) {
|
602 |
event.preventDefault();
|
603 |
});
|
604 |
});
|
1 |
/*!
|
2 |
+
* Collapse-O-Matic v1.5.4
|
3 |
* http://plugins.twinpictures.de/plugins/collapse-o-matic/
|
4 |
*
|
5 |
* Copyright 2013, Twinpictures
|
238 |
}, '.collapseomatic'); //pass the element as an argument to .on
|
239 |
|
240 |
//the main collapse/expand function
|
241 |
+
jQuery(document).on('click', '.collapseomatic', function(event) {
|
242 |
var offset_top;
|
243 |
|
244 |
//alert('phones ringin dude');
|
381 |
|
382 |
});
|
383 |
|
384 |
+
jQuery(document).on('click', '.expandall', function(event) {
|
385 |
if(jQuery(this).attr('rel') !== undefined){
|
386 |
var rel = jQuery(this).attr('rel');
|
387 |
jQuery('.collapseomatic[rel="' + rel +'"].collapseomatic:not(.colomat-close)').each(function(index) {
|
459 |
}
|
460 |
});
|
461 |
|
462 |
+
jQuery(document).on('click', '.collapseall', function(event) {
|
463 |
if(jQuery(this).attr('rel') !== undefined){
|
464 |
var rel = jQuery(this).attr('rel');
|
465 |
jQuery('.collapseomatic[rel="' + rel +'"].collapseomatic.colomat-close').each(function(index) {
|
567 |
}
|
568 |
|
569 |
//handle anchor links within the same page
|
570 |
+
jQuery(document).on('click', 'a.expandanchor', function(event) {
|
571 |
event.preventDefault();
|
572 |
var fullurl = jQuery(this).attr('href');
|
573 |
if (fullurl.match('#')) { // the URL contains an anchor
|
597 |
}
|
598 |
});
|
599 |
|
600 |
+
jQuery(document).on('click', 'a.colomat-nolink', function(event) {
|
|
|
601 |
event.preventDefault();
|
602 |
});
|
603 |
});
|
js/collapse.min.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
function collapse_init(){jQuery('.force_content_collapse').each(function(index){jQuery(this).css('display','none')});jQuery('.collapseomatic:not(.colomat-close)').each(function(index){var thisid=jQuery(this).attr('id');jQuery('#target-'+thisid).css('display','none')});jQuery('.collapseomatic.colomat-close').each(function(index){var thisid=jQuery(this).attr('id');if(jQuery("#swap-"+thisid).length>0){swapTitle(this,"#swap-"+thisid)}if(jQuery("#swapexcerpt-"+thisid).length>0){swapTitle("#excerpt-"+thisid,"#swapexcerpt-"+thisid)}})}function swapTitle(origObj,swapObj){var orightml=jQuery(origObj).html();var swaphtml=jQuery(swapObj).html();jQuery(origObj).html(swaphtml);jQuery(swapObj).html(orightml);if(swaphtml.indexOf("<cufon")!=-1){var trigelem=jQuery(this).get(0).tagName;Cufon.replace(trigelem)}}function closeOtherGroups(rel){jQuery('.collapseomatic[rel!="'+rel+'"]').each(function(index){if(jQuery(this).hasClass('colomat-expand-only')&&jQuery(this).hasClass('colomat-close')){return}if(jQuery(this).hasClass('colomat-close')&&jQuery(this).attr('rel')!==undefined){jQuery(this).removeClass('colomat-close');var id=jQuery(this).attr('id');jQuery('#parent-'+id).removeClass('colomat-parent-highlight');if(jQuery("#swap-"+id).length>0){swapTitle(this,"#swap-"+id)}if(jQuery("#swapexcerpt-"+id).length>0){swapTitle("#exerpt-"+id,"#swapexcerpt-"+id)}if(colomatslideEffect=='slideToggle'){jQuery('#target-'+id).slideToggle(colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}})}else if(colomatslideEffect=='slideFade'){jQuery('#target-'+id).animate({height:"toggle",opacity:"toggle"},colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}})}var ancestors=jQuery('.collapseomatic','#target-'+id);ancestors.each(function(index){jQuery(this).removeClass('colomat-close');var thisid=jQuery(this).attr('id');jQuery('#target-'+thisid).css('display','none')})}})}function closeOtherMembers(rel,id){jQuery('.collapseomatic[rel="'+rel+'"]').each(function(index){if(jQuery(this).hasClass('colomat-expand-only')&&jQuery(this).hasClass('colomat-close')){return}if(jQuery(this).attr('id')!=id&&jQuery(this).hasClass('colomat-close')&&jQuery(this).attr('rel')!==undefined){jQuery(this).removeClass('colomat-close');var thisid=jQuery(this).attr('id');jQuery('#parent-'+thisid).removeClass('colomat-parent-highlight');if(jQuery("#swap-"+thisid).length>0){swapTitle(this,"#swap-"+thisid)}if(jQuery("#swapexcerpt-"+thisid).length>0){swapTitle("#excerpt-"+thisid,"#swapexcerpt-"+thisid)}if(!jQuery(this).hasClass('colomat-close')&&jQuery(this).hasClass('snap-shut')){jQuery('#target-'+thisid).hide()}else if(colomatslideEffect=='slideToggle'){jQuery('#target-'+thisid).slideToggle(colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}})}else if(colomatslideEffect=='slideFade'){jQuery('#target-'+thisid).animate({height:"toggle",opacity:"toggle"},colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}})}var ancestors=jQuery('.collapseomatic','#target-'+id);ancestors.each(function(index){if(jQuery(this).hasClass('colomat-expand-only')&&jQuery(this).hasClass('colomat-close')){return}var pre_id=id.split('-');if(pre_id[0].indexOf('extra')!='-1'){pre=pre_id.splice(0,1);id=pre_id.join('-');if(jQuery(this).hasClass('scroll-to-trigger')){var target_offset=jQuery('#'+id).offset();offset_top=target_offset.top}if(jQuery('#'+id).hasClass('scroll-to-trigger')){offset_top=jQuery('#scrollonclose-'+id).attr('name')}jQuery('#'+id).toggleClass('colomat-close');jQuery('[id^=extra][id$='+id+']').toggleClass('colomat-close')}if(jQuery(this).attr('id').indexOf('bot-')=='-1'){jQuery(this).removeClass('colomat-close');var thisid=jQuery(this).attr('id');if(jQuery("#swap-"+thisid).length>0){swapTitle(this,"#swap-"+thisid)}if(jQuery("#swapexcerpt-"+thisid).length>0){swapTitle("#excerpt-"+thisid,"#swapexcerpt-"+thisid)}jQuery('#target-'+thisid).css('display','none')}})}})}jQuery(document).ready(function(){collapse_init();jQuery('.content_collapse_wrapper').each(function(index){jQuery(this).css('display','inline')});jQuery(document).on({mouseenter:function(){jQuery(this).addClass('colomat-hover')},mouseleave:function(){jQuery(this).removeClass('colomat-hover')}},'.collapseomatic');jQuery('.collapseomatic').on('click',function(event){var offset_top;if(jQuery(this).hasClass('colomat-expand-only')&&jQuery(this).hasClass('colomat-close')){return}var id=jQuery(this).attr('id');if(jQuery(this).hasClass('colomat-close')&&jQuery(this).hasClass('scroll-to-trigger')){offset_top=jQuery('#scrollonclose-'+id).attr('name')}var id_arr=id.split('-');if(id_arr[0].indexOf('extra')!='-1'){pre=id_arr.splice(0,1);id=id_arr.join('-');if(jQuery(this).hasClass('scroll-to-trigger')){var target_offset=jQuery('#'+id).offset();offset_top=target_offset.top}if(jQuery('#'+id).hasClass('scroll-to-trigger')){offset_top=jQuery('#scrollonclose-'+id).attr('name')}jQuery('#'+id).toggleClass('colomat-close');jQuery('[id^=extra][id$='+id+']').toggleClass('colomat-close')}else if(id.indexOf('bot-')!='-1'){id=id.substr(4);jQuery('#'+id).toggleClass('colomat-close');if(jQuery(this).hasClass('scroll-to-trigger')){var target_offset=jQuery('#'+id).offset();offset_top=target_offset.top}if(jQuery('#'+id).hasClass('scroll-to-trigger')){offset_top=jQuery('#scrollonclose-'+id).attr('name')}}else{jQuery(this).toggleClass('colomat-close');jQuery('[id^=extra][id$='+id+']').toggleClass('colomat-close')}if(jQuery("#swap-"+id).length>0){swapTitle(jQuery('#'+id),"#swap-"+id)}if(jQuery("#swapexcerpt-"+id).length>0){swapTitle("#excerpt-"+id,"#swapexcerpt-"+id)}jQuery(this).addClass('colomat-visited');var parentID='parent-'+id;jQuery('#'+parentID).toggleClass('colomat-parent-highlight');if(!jQuery(this).hasClass('colomat-close')&&jQuery(this).hasClass('snap-shut')){jQuery('#target-'+id).hide()}else if(colomatslideEffect=='slideToggle'){jQuery('#target-'+id).removeClass('maptastic');jQuery('#target-'+id).slideToggle(colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}if(jQuery('#'+id).hasClass('find-me')&&jQuery('#'+id).hasClass('colomat-close')){offset_top=jQuery('#find-'+id).attr('name');if(!offset_top){target_offset=jQuery('#'+id).offset();offset_top=target_offset.top}jQuery('html, body').animate({scrollTop:offset_top},500)}})}else if(colomatslideEffect=='slideFade'){jQuery('#target-'+id).removeClass('maptastic');jQuery('#target-'+id).animate({height:"toggle",opacity:"toggle"},colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}if(jQuery('#'+id).hasClass('find-me')&&jQuery('#'+id).hasClass('colomat-close')){offset_top=jQuery('#find-'+id).attr('name');if(!offset_top){target_offset=jQuery('#'+id).offset();offset_top=target_offset.top}jQuery('html, body').animate({scrollTop:offset_top},500)}})}if(jQuery(this).attr('rel')!==undefined){var rel=jQuery(this).attr('rel');if(rel.indexOf('-highlander')!='-1'){closeOtherMembers(rel,id)}else{closeOtherGroups(rel)}}if(offset_top){jQuery('html, body').animate({scrollTop:offset_top},500)}});jQuery('.expandall').on('click',function(event){if(jQuery(this).attr('rel')!==undefined){var rel=jQuery(this).attr('rel');jQuery('.collapseomatic[rel="'+rel+'"].collapseomatic:not(.colomat-close)').each(function(index){jQuery(this).addClass('colomat-close');var thisid=jQuery(this).attr('id');jQuery('#parent-'+thisid).addClass('colomat-parent-highlight');if(jQuery("#swap-"+thisid).length>0){swapTitle(this,"#swap-"+thisid)}if(jQuery("#swapexcerpt-"+thisid).length>0){swapTitle("#excerpt-"+thisid,"#swapexcerpt-"+thisid)}if(colomatslideEffect=='slideToggle'){jQuery('#target-'+thisid).slideToggle(colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}})}else if(colomatslideEffect=='slideFade'){jQuery('#target-'+thisid).animate({height:"toggle",opacity:"toggle"},colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}})}})}else{jQuery('.collapseomatic:not(.colomat-close)').each(function(index){jQuery(this).addClass('colomat-close');var thisid=jQuery(this).attr('id');jQuery('#parent-'+thisid).addClass('colomat-parent-highlight');if(jQuery("#swap-"+thisid).length>0){swapTitle(this,"#swap-"+thisid)}if(jQuery("#swapexcerpt-"+thisid).length>0){swapTitle("#excerpt-"+thisid,"#swapexcerpt-"+thisid)}if(colomatslideEffect=='slideToggle'){jQuery('#target-'+thisid).slideToggle(colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}})}else if(colomatslideEffect=='slideFade'){jQuery('#target-'+thisid).animate({height:"toggle",opacity:"toggle"},colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}})}})}});jQuery('.collapseall').on('click',function(event){if(jQuery(this).attr('rel')!==undefined){var rel=jQuery(this).attr('rel');jQuery('.collapseomatic[rel="'+rel+'"].collapseomatic.colomat-close').each(function(index){if(jQuery(this).hasClass('colomat-expand-only')&&jQuery(this).hasClass('colomat-close')){return}jQuery(this).removeClass('colomat-close');var thisid=jQuery(this).attr('id');jQuery('#parent-'+thisid).removeClass('colomat-parent-highlight');if(jQuery("#swap-"+thisid).length>0){swapTitle(this,"#swap-"+thisid)}if(jQuery("#swapexcerpt-"+thisid).length>0){swapTitle("#excerpt-"+thisid,"#swapexcerpt-"+thisid)}if(colomatslideEffect=='slideToggle'){jQuery('#target-'+thisid).slideToggle(colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}})}else if(colomatslideEffect=='slideFade'){jQuery('#target-'+thisid).animate({height:"toggle",opacity:"toggle"},colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}})}})}else{jQuery('.collapseomatic.colomat-close').each(function(index){if(jQuery(this).hasClass('colomat-expand-only')&&jQuery(this).hasClass('colomat-close')){return}jQuery(this).removeClass('colomat-close');var thisid=jQuery(this).attr('id');jQuery('#parent-'+thisid).removeClass('colomat-parent-highlight');if(jQuery("#swap-"+thisid).length>0){swapTitle(this,"#swap-"+thisid)}if(jQuery("#swapexcerpt-"+thisid).length>0){swapTitle("#excerpt-"+thisid,"#swapexcerpt-"+thisid)}if(colomatslideEffect=='slideToggle'){jQuery('#target-'+thisid).slideToggle(colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}})}else if(colomatslideEffect=='slideFade'){jQuery('#target-'+thisid).animate({height:"toggle",opacity:"toggle"},colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}})}})}});var myFile=document.location.toString();if(myFile.match('#')){var anchor_arr=myFile.split('#');if(anchor_arr.length>1){junk=anchor_arr.splice(0,1);anchor=anchor_arr.join('#')}else{anchor=anchor_arr[0]}jQuery('#'+anchor).click();jQuery('#'+anchor).parents('.collapseomatic_content, .collapseomatic_content_inline').each(function(index){parent_arr=jQuery(this).attr('id').split('-');junk=parent_arr.splice(0,1);parent=parent_arr.join('-');jQuery('#'+parent).click()})}jQuery('a.expandanchor').on('click',function(event){event.preventDefault();var fullurl=jQuery(this).attr('href');if(fullurl.match('#')){var anchor_arr=fullurl.split('#');if(anchor_arr.length>1){junk=anchor_arr.splice(0,1);anchor=anchor_arr.join('#')}else{anchor=anchor_arr[0]}if(!jQuery('#'+anchor).hasClass('colomat-close')){jQuery('#'+anchor).click()}jQuery('#'+anchor).parents('.collapseomatic_content, .collapseomatic_content_inline').each(function(index){parent_arr=jQuery(this).attr('id').split('-');junk=parent_arr.splice(0,1);parent=parent_arr.join('-');if(!jQuery('#'+parent).hasClass('colomat-close')){jQuery('#'+parent).click()}})}});jQuery('a.colomat-nolink').on('click',function(event){event.preventDefault()})});
|
|
languages/colomat_de.mo
ADDED
Binary file
|
languages/colomat_de.po
ADDED
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Translation of Collapse-O-Matic in German
|
2 |
+
# This file is distributed under the same license as the Collapse-O-Matic package.
|
3 |
+
msgid ""
|
4 |
+
msgstr ""
|
5 |
+
"PO-Revision-Date: 2013-11-19 08:15+0100\n"
|
6 |
+
"MIME-Version: 1.0\n"
|
7 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
+
"Content-Transfer-Encoding: 8bit\n"
|
9 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
10 |
+
"X-Generator: Poedit 1.5.7\n"
|
11 |
+
"Project-Id-Version: Collapse-O-Matic\n"
|
12 |
+
"POT-Creation-Date: \n"
|
13 |
+
"Last-Translator: astroBro <baden@twinpictures.de>\n"
|
14 |
+
"Language-Team: Twinpictures <info@twinpictures.de>\n"
|
15 |
+
"Language: German\n"
|
16 |
+
|
17 |
+
#: colomat.php:287
|
18 |
+
msgid "Style"
|
19 |
+
msgstr "Erscheinungsbild"
|
20 |
+
|
21 |
+
#: colomat.php:294
|
22 |
+
msgid "Light"
|
23 |
+
msgstr "Hell"
|
24 |
+
|
25 |
+
#: colomat.php:295
|
26 |
+
msgid "Dark"
|
27 |
+
msgstr "Dunkel"
|
28 |
+
|
29 |
+
#: colomat.php:306
|
30 |
+
msgid ""
|
31 |
+
"Select Light for sites with lighter backgroudns. Select Dark for sites with "
|
32 |
+
"darker backgrounds."
|
33 |
+
msgstr ""
|
34 |
+
"Wählen Sie \"Hell\" für Websiten mit hellem Hintergrund und \"Dunkel\" für "
|
35 |
+
"Seiten mit dunklem Hintergrund"
|
36 |
+
|
37 |
+
#: colomat.php:275 colomat.php:373
|
38 |
+
msgid "Click to toggle"
|
39 |
+
msgstr "Klicken Sie zum Ein-/Ausklappen."
|
40 |
+
|
41 |
+
#: colomat.php:276
|
42 |
+
msgid "Default Collapse-O-Matic Settings"
|
43 |
+
msgstr "Standardeinstellungen von Collapse-O-Matic"
|
44 |
+
|
45 |
+
#: colomat.php:311
|
46 |
+
msgid "Tag Attribute"
|
47 |
+
msgstr "Tag Attribut"
|
48 |
+
|
49 |
+
#: colomat.php:313
|
50 |
+
msgid ""
|
51 |
+
"HTML tag use to wrap the trigger text. See %sTag Attribute%s in the "
|
52 |
+
"documentation for more info."
|
53 |
+
msgstr ""
|
54 |
+
"HTML Tag, welcher um den Aktivierungstext gelegt wird. Suchen Sie nach %sTag "
|
55 |
+
"Attribute%s in der Dokumentation für weitere Informationen (Englisch)."
|
56 |
+
|
57 |
+
#: colomat.php:323
|
58 |
+
msgid "Collapse/Expand Duration"
|
59 |
+
msgstr "Zeit des Öffnens/Schließens"
|
60 |
+
|
61 |
+
#: colomat.php:325
|
62 |
+
msgid ""
|
63 |
+
"A string or number determining how long the animation will run. See "
|
64 |
+
"%sDuration%s in the documentation for more info."
|
65 |
+
msgstr ""
|
66 |
+
"Ein Wert oder eine Zahl welche definiert wie lange die Animation andauern "
|
67 |
+
"wird. Suchen Sie nach %sAnimation%s in der englischsprachigen Dokumentation "
|
68 |
+
"für mehr Informationen."
|
69 |
+
|
70 |
+
#: colomat.php:330
|
71 |
+
msgid "Animation Effect"
|
72 |
+
msgstr "Animationseffekt"
|
73 |
+
|
74 |
+
#: colomat.php:337
|
75 |
+
msgid "Slide Only"
|
76 |
+
msgstr "Nur gleiten"
|
77 |
+
|
78 |
+
#: colomat.php:338
|
79 |
+
msgid "Slide & Fade"
|
80 |
+
msgstr "Gleiten & Ausblenden"
|
81 |
+
|
82 |
+
#: colomat.php:349
|
83 |
+
msgid ""
|
84 |
+
"Animation effect to use while collapsing and expanding. See %sAnimation "
|
85 |
+
"Effect%s in the documentation for more info."
|
86 |
+
msgstr ""
|
87 |
+
"Animationseffekte werden nur verwendet während dem Ein- bzw. Aufklappen. "
|
88 |
+
"Weitere Informationen finden Sie unter %sAnimation Effect%s in der "
|
89 |
+
"englischen Dokumentation."
|
90 |
+
|
91 |
+
#: colomat.php:354
|
92 |
+
msgid "Level Up!"
|
93 |
+
msgstr "Verbessern Sie Ihre Programmversion!"
|
94 |
+
|
95 |
+
#: colomat.php:355
|
96 |
+
msgid ""
|
97 |
+
"<em>Comming Soon: Collapse-Pro-Matic</em> our preimum plugin that offers "
|
98 |
+
"additional attributes and the ability to set default attribute settings for "
|
99 |
+
"all attributes."
|
100 |
+
msgstr ""
|
101 |
+
"<em>Bald erhältlich: Collapse-Pro-Matic</em>, unser Premium-Plug-In welches "
|
102 |
+
"Ihnen mehr Einstellungsmöglichkeiten bieten wird sowie die Option, "
|
103 |
+
"Standardattribute für alle Attribute festzulegen."
|
104 |
+
|
105 |
+
#: colomat.php:362
|
106 |
+
msgid "Save Changes"
|
107 |
+
msgstr "Speichere die vorgenommenen Änderungen"
|
108 |
+
|
109 |
+
#: colomat.php:374
|
110 |
+
msgid "About"
|
111 |
+
msgstr "Über"
|
112 |
+
|
113 |
+
#: colomat.php:377
|
114 |
+
msgid ""
|
115 |
+
"Remove clutter, save space. Display and hide additional content in a SEO "
|
116 |
+
"friendly way. Wrap any content—including other shortcodes—into a "
|
117 |
+
"lovely jQuery expanding and collapsing element."
|
118 |
+
msgstr ""
|
119 |
+
"Entferne unnützen Code, spare Platz. Lasse ergänzenden Text ausgeblendet und "
|
120 |
+
"mit einem Klick erscheinen. Trotz alldem ist der Text "
|
121 |
+
"suchmaschinenfreundlich! Verpacke jedmöglichen Inhalt sowie andere "
|
122 |
+
"Shortcodes in ein tolles jQuery Element."
|
123 |
+
|
124 |
+
#: colomat.php:379
|
125 |
+
msgid ""
|
126 |
+
"%sDetailed documentation%s, complete with working demonstrations of all "
|
127 |
+
"shortcode attributes, is available for your instructional enjoyment."
|
128 |
+
msgstr ""
|
129 |
+
"Zum besseren Verständnis sind %sDetailed documentation%s verfügbar mit "
|
130 |
+
"Demonstration aller Shortcodes und Attributen."
|
131 |
+
|
132 |
+
#: colomat.php:380
|
133 |
+
msgid "%sFree%s & %sPremimum%s Support"
|
134 |
+
msgstr "%sFree%s & %sPremium%s Hilfe (Support)"
|
135 |
+
|
136 |
+
#: colomat.php:381
|
137 |
+
msgid ""
|
138 |
+
"If you like this plugin, please consider %sreviewing it at WordPress.org%s "
|
139 |
+
"to help others."
|
140 |
+
msgstr ""
|
141 |
+
"Wenn Sie dieses Plug-In mögen bitten wir sie es auf %sreviewing it at "
|
142 |
+
"WordPress.org%s zu bewerten."
|
143 |
+
|
144 |
+
msgid "jQuery Collapse-O-Matic"
|
145 |
+
msgstr "jQuery Collapse-O-Matic"
|
146 |
+
|
147 |
+
msgid "http://plugins.twinpictures.de/plugins/collapse-o-matic/"
|
148 |
+
msgstr "http://plugins.twinpictures.de/plugins/collapse-o-matic/"
|
149 |
+
|
150 |
+
msgid ""
|
151 |
+
"Collapse-O-Matic adds an [expand] shortcode that wraps content into a "
|
152 |
+
"lovely, jQuery collapsible div."
|
153 |
+
msgstr ""
|
154 |
+
"Collapse-O-Matic fügt einen [expand] Shortcode hinzu welcher Inhalt in einen "
|
155 |
+
"klasse einklappbaren jQuery div packt."
|
156 |
+
|
157 |
+
msgid "twinpictures, baden03"
|
158 |
+
msgstr "twinpictures, baden03"
|
159 |
+
|
160 |
+
msgid "http://twinpictures.de/"
|
161 |
+
msgstr "http://twinpictures.de/"
|
languages/colomat_ru.mo
ADDED
Binary file
|
languages/colomat_ru.po
ADDED
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Translation of Collapse-O-Matic in Russian
|
2 |
+
# This file is distributed under the same license as the Collapse-O-Matic package.
|
3 |
+
msgid ""
|
4 |
+
msgstr ""
|
5 |
+
"PO-Revision-Date: 2013-11-19 08:16+0100\n"
|
6 |
+
"MIME-Version: 1.0\n"
|
7 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
+
"Content-Transfer-Encoding: 8bit\n"
|
9 |
+
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
10 |
+
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
11 |
+
"X-Generator: Poedit 1.5.7\n"
|
12 |
+
"Project-Id-Version: Collapse-O-Matic\n"
|
13 |
+
"POT-Creation-Date: \n"
|
14 |
+
"Last-Translator: astroBro <baden@twinpictures.de>\n"
|
15 |
+
"Language-Team: Twinpictures <info@twinpictures.de>\n"
|
16 |
+
"Language: Russian\n"
|
17 |
+
|
18 |
+
#: colomat.php:287
|
19 |
+
msgid "Style"
|
20 |
+
msgstr "Стиль"
|
21 |
+
|
22 |
+
#: colomat.php:294
|
23 |
+
msgid "Light"
|
24 |
+
msgstr "Светлый"
|
25 |
+
|
26 |
+
#: colomat.php:295
|
27 |
+
msgid "Dark"
|
28 |
+
msgstr "Темный"
|
29 |
+
|
30 |
+
#: colomat.php:306
|
31 |
+
msgid ""
|
32 |
+
"Select Light for sites with lighter backgroudns. Select Dark for sites with "
|
33 |
+
"darker backgrounds."
|
34 |
+
msgstr ""
|
35 |
+
"Выберите Светлый стиль для сайтов со светлым фоном. Темный для сайтов с "
|
36 |
+
"темным."
|
37 |
+
|
38 |
+
#: colomat.php:275 colomat.php:373
|
39 |
+
msgid "Click to toggle"
|
40 |
+
msgstr "Нажмите, что бы переключить"
|
41 |
+
|
42 |
+
#: colomat.php:276
|
43 |
+
msgid "Default Collapse-O-Matic Settings"
|
44 |
+
msgstr "Настройки по умолчанию для Collapse-O-Matic"
|
45 |
+
|
46 |
+
#: colomat.php:311
|
47 |
+
msgid "Tag Attribute"
|
48 |
+
msgstr "Атрибут Тега"
|
49 |
+
|
50 |
+
#: colomat.php:313
|
51 |
+
msgid ""
|
52 |
+
"HTML tag use to wrap the trigger text. See %sTag Attribute%s in the "
|
53 |
+
"documentation for more info."
|
54 |
+
msgstr ""
|
55 |
+
|
56 |
+
#: colomat.php:323
|
57 |
+
msgid "Collapse/Expand Duration"
|
58 |
+
msgstr ""
|
59 |
+
|
60 |
+
#: colomat.php:325
|
61 |
+
msgid ""
|
62 |
+
"A string or number determining how long the animation will run. See "
|
63 |
+
"%sDuration%s in the documentation for more info."
|
64 |
+
msgstr ""
|
65 |
+
|
66 |
+
#: colomat.php:330
|
67 |
+
msgid "Animation Effect"
|
68 |
+
msgstr ""
|
69 |
+
|
70 |
+
#: colomat.php:337
|
71 |
+
msgid "Slide Only"
|
72 |
+
msgstr ""
|
73 |
+
|
74 |
+
#: colomat.php:338
|
75 |
+
msgid "Slide & Fade"
|
76 |
+
msgstr ""
|
77 |
+
|
78 |
+
#: colomat.php:349
|
79 |
+
msgid ""
|
80 |
+
"Animation effect to use while collapsing and expanding. See %sAnimation "
|
81 |
+
"Effect%s in the documentation for more info."
|
82 |
+
msgstr ""
|
83 |
+
|
84 |
+
#: colomat.php:354
|
85 |
+
msgid "Level Up!"
|
86 |
+
msgstr ""
|
87 |
+
|
88 |
+
#: colomat.php:355
|
89 |
+
msgid ""
|
90 |
+
"<em>Comming Soon: Collapse-Pro-Matic</em> our preimum plugin that offers "
|
91 |
+
"additional attributes and the ability to set default attribute settings for "
|
92 |
+
"all attributes."
|
93 |
+
msgstr ""
|
94 |
+
|
95 |
+
#: colomat.php:362
|
96 |
+
msgid "Save Changes"
|
97 |
+
msgstr ""
|
98 |
+
|
99 |
+
#: colomat.php:374
|
100 |
+
msgid "About"
|
101 |
+
msgstr ""
|
102 |
+
|
103 |
+
#: colomat.php:377
|
104 |
+
msgid ""
|
105 |
+
"Remove clutter, save space. Display and hide additional content in a SEO "
|
106 |
+
"friendly way. Wrap any content—including other shortcodes—into a "
|
107 |
+
"lovely jQuery expanding and collapsing element."
|
108 |
+
msgstr ""
|
109 |
+
|
110 |
+
#: colomat.php:379
|
111 |
+
msgid ""
|
112 |
+
"%sDetailed documentation%s, complete with working demonstrations of all "
|
113 |
+
"shortcode attributes, is available for your instructional enjoyment."
|
114 |
+
msgstr ""
|
115 |
+
|
116 |
+
#: colomat.php:380
|
117 |
+
msgid "%sFree%s & %sPremimum%s Support"
|
118 |
+
msgstr ""
|
119 |
+
|
120 |
+
#: colomat.php:381
|
121 |
+
msgid ""
|
122 |
+
"If you like this plugin, please consider %sreviewing it at WordPress.org%s "
|
123 |
+
"to help others."
|
124 |
+
msgstr ""
|
125 |
+
|
126 |
+
msgid "jQuery Collapse-O-Matic"
|
127 |
+
msgstr ""
|
128 |
+
|
129 |
+
msgid "http://plugins.twinpictures.de/plugins/collapse-o-matic/"
|
130 |
+
msgstr ""
|
131 |
+
|
132 |
+
msgid ""
|
133 |
+
"Collapse-O-Matic adds an [expand] shortcode that wraps content into a "
|
134 |
+
"lovely, jQuery collapsible div."
|
135 |
+
msgstr ""
|
136 |
+
|
137 |
+
msgid "twinpictures, baden03"
|
138 |
+
msgstr ""
|
139 |
+
|
140 |
+
msgid "http://twinpictures.de/"
|
141 |
+
msgstr ""
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@
|
|
3 |
Contributors: twinpictures, baden03
|
4 |
Donate link: http://plugins.twinpictures.de/plugins/collapse-o-matic/
|
5 |
Tags: collapse, expand, collapsible, expandable, expandable content, collapsable content, shortcode, hidden, hide, display, accordion, accordion, jQuery, javascript, roll-your-own, twinpictures, read me, read more, more
|
6 |
-
Requires at least: 3.
|
7 |
-
Tested up to: 3.
|
8 |
-
Stable tag: 1.5.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -50,6 +50,11 @@ No. Not even close.
|
|
50 |
|
51 |
== Changelog ==
|
52 |
|
|
|
|
|
|
|
|
|
|
|
53 |
= 1.5.3 =
|
54 |
* shortcode works in sidebar widgets (again)
|
55 |
* fixed hasClass error in Slide Only animation option
|
@@ -212,6 +217,11 @@ Fixed auto-expand of urls with id-anchors
|
|
212 |
|
213 |
== Upgrade Notice ==
|
214 |
|
|
|
|
|
|
|
|
|
|
|
215 |
= 1.5.3 =
|
216 |
* shortcode works in sidebar widgets (again)
|
217 |
* fixed hasClass error in Slide Only animation option
|
3 |
Contributors: twinpictures, baden03
|
4 |
Donate link: http://plugins.twinpictures.de/plugins/collapse-o-matic/
|
5 |
Tags: collapse, expand, collapsible, expandable, expandable content, collapsable content, shortcode, hidden, hide, display, accordion, accordion, jQuery, javascript, roll-your-own, twinpictures, read me, read more, more
|
6 |
+
Requires at least: 3.5
|
7 |
+
Tested up to: 3.7.1
|
8 |
+
Stable tag: 1.5.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
50 |
|
51 |
== Changelog ==
|
52 |
|
53 |
+
= 1.5.4 =
|
54 |
+
* updated .on method
|
55 |
+
* removed php4 constructor
|
56 |
+
* added DE and RU languages
|
57 |
+
|
58 |
= 1.5.3 =
|
59 |
* shortcode works in sidebar widgets (again)
|
60 |
* fixed hasClass error in Slide Only animation option
|
217 |
|
218 |
== Upgrade Notice ==
|
219 |
|
220 |
+
= 1.5.4 =
|
221 |
+
* updated jQuery .on() method
|
222 |
+
* removed php4 constructor
|
223 |
+
* added DE and RU languages
|
224 |
+
|
225 |
= 1.5.3 =
|
226 |
* shortcode works in sidebar widgets (again)
|
227 |
* fixed hasClass error in Slide Only animation option
|