Skip to content

Commit

Permalink
Updated to WP-Views 1.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaycollier committed Mar 13, 2013
1 parent 4cbec06 commit 3a2bd2e
Show file tree
Hide file tree
Showing 410 changed files with 62,627 additions and 0 deletions.
56 changes: 56 additions & 0 deletions wp-content/plugins/wp-views/change_log.txt
@@ -0,0 +1,56 @@
-------------------------------------------------------------------------------------------------------------------
Version 1.2
- Fixed Views filter appears to have a problem with Asian characters - allow asian characters in values
- Fixed Change the order of View results - allow adding aditional manual sorting
- Fixed The default option not working for Select type fields
- Fixed Filter controls: There is no way to set Default label for taxonomies, only for custom fields
- Fixed Fix generation of table header layout Meta HTML
- Fixed Debug to console is not working in WP 3.5
- Fixed Some items in the V popup are centered and some not
- Fixed Passing arguments using views short code attribute - fix for example text
- Fixed Both in frontend and backend: Calendar always shows in english, even with another default language - fixed frontend
- Fixed Open_basedir restriction in effect when exporting
- Fixed View not get correct translated CPT slug in LOOP
- Fixed Archive View settings still in effect after changing View to Normal
- Fixed Search filter mixes specific and visitor modes
- Fixed Archive views not working when no posts found
- New Syntax highlighter in Views Meta HTML and View Templates editor
- New Add a media section to the View edit
- New Add CSS editor to Views and View templates
- New Add JS editor to Views and View templates
- New Make meta HTML, CSS and JS boxes open-state persistent
- New Export CSS, JS and images
- New Add View template name to body classes
- New Check if we receive a complete form when editing Views
- New Raw output for [wpv-post-featured-image]
- New Shortcode for get_currentuserinfo()
- New Add [wpv-current-user] to wpv-if processing
- New Shortcode for bloginfo()
- New Shortcode for get_post_type_archive_link($post_type)
- New Add taxonomy shortcodes to shortcodes-in-shortcodes


-------------------------------------------------------------------------------------------------------------------
Version 1.1.4.1
- Fixed taxonomy query using name instead of slug


-------------------------------------------------------------------------------------------------------------------
Version 1.1.4
- Fixed WP 3.5 Filter forms - taxonomy filter doesn't work when there is a space in taxonomy term name
- Fixed Missing links in Settings page
- Fixed Paginating looses filter control values
- Fixed Display usage tips for filter by author
- Fixed Add colons before inputs
- Fixed Check/handle spaces in URL parameters
- Fixed Validate that the URL argument name or shortcode attribute name is specified and show an error message otherwise
- Fixed When inserting author filter via the popup, it's saved incorrectly
- Fixed New Pages Overridden by Post View Template
- Fixed Pagination looses frontend filter values
- Add filtering by author
- Fixed Don't use mb_ereg
- Fixed HTML validation errors with View filter
- Fixed Javascript error when inserting shortcodes
- Add Wrap View loop in [wpv-posts-found] shortcode
- Fixed Conditional with empty not working

@@ -0,0 +1,29 @@
<?php
/** provide default implementation of [wpml-string] shortcode for when
* wpml plugin is not active.
*/

if (!isset($wpml_string_sub_active)) {

add_action('init', 'stub_wpml_add_shortcode', 100);

$wpml_string_sub_active = true;

function stub_wpml_add_shortcode() {
global $WPML_String_Translation;

if (!isset($WPML_String_Translation)) {
// WPML string translation is not active
// Add our own do nothing shortcode

add_shortcode('wpml-string', 'stub_wpml_string_shortcode');

}

}

function stub_wpml_string_shortcode($atts, $value) {
// return un-processed.
return do_shortcode($value);
}
}
54 changes: 54 additions & 0 deletions wp-content/plugins/wp-views/embedded/common/array2xml.php
@@ -0,0 +1,54 @@
<?php

if (!class_exists('ICL_Array2XML')) {

/**
* Converts array to XML
*/
class ICL_Array2XML
{

var $text;
var $arrays, $keys, $node_flag, $depth, $xml_parser;

function array2xml($array, $root) {
$this->depth = 1;
$this->text = "<?xml version=\"1.0\" encoding=\""
. get_option('blog_charset'). "\"?>\r\n<$root>\r\n";
$this->text .= $this->array_transform($array);
$this->text .="</$root>";
return $this->text;
}

function array_transform($array) {
$output = '';
$indent = str_repeat(' ', $this->depth * 4);
$child_key = false;
if (isset($array['__key'])) {
$child_key = $array['__key'];
unset($array['__key']);
}
foreach ($array as $key => $value) {
if (!is_array($value)) {
if (empty($key)) {
continue;
}
$key = $child_key ? $child_key : $key;
$output .= $indent . "<$key>" . htmlspecialchars($value, ENT_QUOTES) . "</$key>\r\n";
} else {
$this->depth++;
$key = $child_key ? $child_key : $key;
$output_temp = $this->array_transform($value);
if (!empty($output_temp)) {
$output .= $indent . "<$key>\r\n";
$output .= $output_temp;
$output .= $indent . "</$key>\r\n";
}
$this->depth--;
}
}
return $output;
}

}
}
@@ -0,0 +1,28 @@
<?php

include_once 'forms.php';

class Enlimbo_Control_Forms extends Enlimbo_Forms_Wpcf {

private $_urlParam = '';

public function isSubmitted($id = '') {
if(!empty($id)) {
$this->_urlParam = $id;
}

if(empty($this->_urlParam)) {
return false;
}

return isset($_GET[$this->_urlParam]);
}

public function renderElements($elements) {
if(isset($elements['field'])) {
$this->_urlParam = $elements['field']['#name'];
}

return parent::renderElements($elements);
}
}

0 comments on commit 3a2bd2e

Please sign in to comment.