")}}),!1}},jQuery(document).ready(function($){$("#title-prompt-text").text(gvGlobals.label_viewname),viewConfiguration.init(),$(".gv-datepicker").datepicker({dateFormat:"yy-mm-dd",constrainInput:!1});var cookie_key="gv-active-tab-"+$("#post_ID").val(),activate_tab=$.cookie(cookie_key);"undefined"===activate_tab&&(activate_tab=0),$("#gv-view-configuration-tabs").tabs({active:activate_tab,activate:function(event,ui){$.cookie(cookie_key,ui.newTab.index(),{path:gvGlobals.cookiepath})}}),$("#gravityview_template_settings .form-table tr:even").addClass("alternate"),$("#gravityview_sort_filter").insertAfter($("#gravityview_view_config"))})}(jQuery);
\ No newline at end of file
diff --git a/gravityview.php b/gravityview.php
index 10c1f8c8a0..7aad49aebb 100644
--- a/gravityview.php
+++ b/gravityview.php
@@ -14,7 +14,7 @@
* Plugin Name: GravityView
* Plugin URI: http://gravityview.co
* Description: Create directories based on a Gravity Forms form, insert them using a shortcode, and modify how they output.
- * Version: 1.6.1
+ * Version: 1.6.2
* Author: Katz Web Services, Inc.
* Author URI: http://www.katzwebservices.com
* Text Domain: gravityview
@@ -69,7 +69,7 @@
*/
final class GravityView_Plugin {
- const version = '1.6.1';
+ const version = '1.6.2';
public static $theInstance;
diff --git a/includes/class-admin-welcome.php b/includes/class-admin-welcome.php
index 03549cb63e..1088b7f8d5 100644
--- a/includes/class-admin-welcome.php
+++ b/includes/class-admin-welcome.php
@@ -298,6 +298,13 @@ public function changelog_screen() {
+
Changes in 1.6.2 (Full List)
+
+
Added: Two new hooks in the Custom Content field to enable conditional logic or enable the_content WordPress filter which will trigger the Video embed (read how)
+
Fixed: Issue when embedding multiple DataTables views in the same page
+
Tweak: A more robust "Save View" procedure to prevent losing field configuration on certain browsers
+
+
Changes in 1.6.1 (Full List)
diff --git a/includes/class-data.php b/includes/class-data.php
index 8d13aa275a..981006e1a2 100644
--- a/includes/class-data.php
+++ b/includes/class-data.php
@@ -167,8 +167,11 @@ function add_view( $view_id, $atts = NULL ) {
// Handle array of IDs
if( is_array( $view_id ) ) {
foreach( $view_id as $id ) {
- return $this->add_view( $id, $atts );
+
+ $this->add_view( $id, $atts );
}
+
+ return $this->views;
}
// The view has been set already; returning stored view.
diff --git a/languages/gravityview-bn_BD.mo b/languages/gravityview-bn_BD.mo
index 4ded67254c..b7f5822a69 100644
Binary files a/languages/gravityview-bn_BD.mo and b/languages/gravityview-bn_BD.mo differ
diff --git a/languages/gravityview-bn_BD.po b/languages/gravityview-bn_BD.po
index 9ad3878a4d..0e65269873 100644
--- a/languages/gravityview-bn_BD.po
+++ b/languages/gravityview-bn_BD.po
@@ -1,14 +1,14 @@
#
# Translators:
-# Md Akter Hosen , 2014
+# Md Akter Hosen , 2014-2015
# Md Akter Hosen , 2014
# Zachary Katz , 2014
msgid ""
msgstr ""
"Project-Id-Version: GravityView\n"
"POT-Creation-Date: 2015-02-13 00:24-0700\n"
-"PO-Revision-Date: 2015-02-13 07:25+0000\n"
-"Last-Translator: Zachary Katz \n"
+"PO-Revision-Date: 2015-02-23 09:31+0000\n"
+"Last-Translator: Md Akter Hosen \n"
"Language-Team: Bengali (http://www.transifex.com/projects/p/gravityview/language/bn/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -466,7 +466,7 @@ msgstr "এই ফর্মের সেটিংস সম্পাদন ক
#: includes/class-admin-views.php:257
msgid "Preview Form"
-msgstr ""
+msgstr "ফরম দেখুন"
#: includes/class-admin-views.php:257
msgid "Preview this form"
@@ -555,13 +555,13 @@ msgstr "\"+ %s\" অথবা এখানে পুরাতনগুলো ট
#: includes/class-admin-views.php:789
#, php-format
msgid "This View is configured using the %s View type, which is disabled."
-msgstr ""
+msgstr "এই দৃশ্যটি %s দৃশ্য ব্যবহার করে কনফিগার করা হয়েছে, যেটি নিস্ক্রিয় রয়েছে।"
#: includes/class-admin-views.php:790
msgid ""
"The data is not lost; re-activate the associated plugin and the "
"configuration will re-appear."
-msgstr ""
+msgstr "তথ্য হারিয়ে যায়নি। সংশ্লিষ্ঠ প্লাগইন্সটি সক্রিয় করুন এবং কনফিগারেশন পুনরায় দেখাবে।"
#: includes/class-admin-views.php:867
msgid "Enter View name here"
@@ -635,7 +635,7 @@ msgstr "পরিবর্তনের লিস্ট"
#: includes/class-admin-welcome.php:256
msgid "What’s New"
-msgstr ""
+msgstr "নতুন ’ কি"
#: includes/class-admin-welcome.php:736
msgid "GravityView is brought to you by:"
diff --git a/languages/gravityview-tr_TR.mo b/languages/gravityview-tr_TR.mo
index b2e5760951..b36a28c5f7 100644
Binary files a/languages/gravityview-tr_TR.mo and b/languages/gravityview-tr_TR.mo differ
diff --git a/languages/gravityview-tr_TR.po b/languages/gravityview-tr_TR.po
index e1ced6b78e..6d89be551c 100644
--- a/languages/gravityview-tr_TR.po
+++ b/languages/gravityview-tr_TR.po
@@ -1,14 +1,14 @@
#
# Translators:
# Süha Karalar , 2014
-# Süha Karalar , 2014
+# Süha Karalar , 2014-2015
# Zachary Katz , 2014
msgid ""
msgstr ""
"Project-Id-Version: GravityView\n"
"POT-Creation-Date: 2015-02-13 00:24-0700\n"
-"PO-Revision-Date: 2015-02-13 10:34+0000\n"
-"Last-Translator: Zachary Katz \n"
+"PO-Revision-Date: 2015-02-20 22:11+0000\n"
+"Last-Translator: Süha Karalar \n"
"Language-Team: Turkish (Turkey) (http://www.transifex.com/projects/p/gravityview/language/tr_TR/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -466,7 +466,7 @@ msgstr "Bu formun ayarlarını değiştirin"
#: includes/class-admin-views.php:257
msgid "Preview Form"
-msgstr ""
+msgstr "Form Önizleme"
#: includes/class-admin-views.php:257
msgid "Preview this form"
@@ -555,13 +555,13 @@ msgstr "\"+ %s\" yada mevcut %ss buraya sürükleyin."
#: includes/class-admin-views.php:789
#, php-format
msgid "This View is configured using the %s View type, which is disabled."
-msgstr ""
+msgstr "Görünüm, kullanılmayan %s Görünüm türü ile ayarlanmış."
#: includes/class-admin-views.php:790
msgid ""
"The data is not lost; re-activate the associated plugin and the "
"configuration will re-appear."
-msgstr ""
+msgstr "Veriler kaybolmadı; alakalı eklentiyi yeniden etkinleştirdiğinizde yapılandırma seçenekleri yeniden görüntülenecektir."
#: includes/class-admin-views.php:867
msgid "Enter View name here"
@@ -635,7 +635,7 @@ msgstr "Değişiklik Listesi"
#: includes/class-admin-welcome.php:256
msgid "What’s New"
-msgstr ""
+msgstr "Yenilikler"
#: includes/class-admin-welcome.php:736
msgid "GravityView is brought to you by:"
@@ -898,12 +898,12 @@ msgstr "Sadece onaylı kayıtları göster"
#: includes/class-data.php:454
msgid "Hide View data until search is performed"
-msgstr ""
+msgstr "Arama gerçekleşmeden Görünüm verisini gösterme"
#: includes/class-data.php:457
msgid ""
"When enabled it will only show any View entries after a search is performed."
-msgstr ""
+msgstr "Etkinleştirildiğinde arama yapıldıktan sonra Görünüm kayıtlarını gösterir."
#: includes/class-data.php:462
msgid "Hide empty fields"
@@ -1039,32 +1039,32 @@ msgstr "Boş"
#: includes/class-duplicate-view.php:221
msgid "Clone"
-msgstr ""
+msgstr "Çoğalt"
#: includes/class-duplicate-view.php:222
msgid "Clone this View"
-msgstr ""
+msgstr "Bu Görünümü Çoğalt"
#: includes/class-duplicate-view.php:227
msgid "New Draft"
-msgstr ""
+msgstr "Yeni Taslak"
#: includes/class-duplicate-view.php:227
msgid "Clone View"
-msgstr ""
+msgstr "Görünümü Çoğalt"
#: includes/class-duplicate-view.php:228
msgid "Copy as a new draft View"
-msgstr ""
+msgstr "Yeni taslak Görünüm olarak kopyala"
#: includes/class-duplicate-view.php:296
msgid "No post to duplicate has been supplied!"
-msgstr ""
+msgstr "Suret oluşturacak yazı tedarik edilmedi!"
#: includes/class-duplicate-view.php:319
#, php-format
msgid "Copy creation failed, could not find original View with ID #%d"
-msgstr ""
+msgstr "Kopyalama yapılamadı, #%d NO lu esas Görünüm bulunamadı"
#: includes/class-frontend-views.php:489
msgid ""
@@ -1074,12 +1074,12 @@ msgstr "Görünür olmayan yada var olmayan bir kaydı görüntülemek istediniz
#: includes/class-frontend-views.php:864
msgctxt "Clear all data from the form"
msgid "Clear"
-msgstr ""
+msgstr "Temizle"
#: includes/class-frontend-views.php:865
msgctxt "Reset the search form to the state that existed on page load"
msgid "Reset"
-msgstr ""
+msgstr "Sıfırla"
#: includes/class-gravityview-extension.php:175
#, php-format
@@ -1093,23 +1093,23 @@ msgstr "%s eklentisi en az GravityView %s sürümü yada daha yenisini gerektirm
#: includes/class-oembed.php:197
msgid "This will look better when it is embedded."
-msgstr ""
+msgstr "Gömüldüğünde daha iyi görünecektir."
#: includes/class-oembed.php:198
msgid ""
"Styles don't get loaded when being previewed, so the content below will look"
" strange. Don't be concerned!"
-msgstr ""
+msgstr "Önizleme esnasında stil dosyası yüklenmediği için aşağıdaki içerik biraz garip görünebilir. Lütfen kaygılanmayın!"
#: includes/class-oembed.php:248
#, php-format
msgid "Embed Entry %d"
-msgstr ""
+msgstr "Gömülü Kayıt %d"
#: includes/class-oembed.php:250
#, php-format
msgid "This entry will be displayed as it is configured in View %d"
-msgstr ""
+msgstr "BU kayıt %d Görünümünde ayarlandığı şekilde görüntülenecektir."
#: includes/class-post-types.php:35
msgctxt "Post Type General Name"
@@ -1474,7 +1474,7 @@ msgstr "Sayfa Bağlantıları"
#: includes/default-widgets.php:188
msgid "Insert custom text or HTML as a widget"
-msgstr ""
+msgstr "Bileşen olarak özel yazı yada HTML ekleyin"
#: includes/default-widgets.php:199 includes/fields/custom.php:23
msgid "Enter text or HTML. Also supports shortcodes."
@@ -1491,7 +1491,7 @@ msgstr "Her yazı bloğunu HTML paragraf etiketi ile çevrele (düz yazılar iç
#: includes/default-widgets.php:362
msgid "This class will be added to the widget container"
-msgstr ""
+msgstr "Bu sınıf bileşeni kapsayan seçici etiket olarak eklenecektir"
#: includes/extensions/delete-entry/class-delete-entry.php:107
msgid "Delete Link Text"
@@ -1672,7 +1672,7 @@ msgstr "Dikey"
#: includes/extensions/search-widget/class-search-widget.php:53
msgid "Show Clear button"
-msgstr ""
+msgstr "Temizle düğmesini göster"
#: includes/extensions/search-widget/class-search-widget.php:57
msgid "Search Bar"
@@ -1733,7 +1733,7 @@ msgstr "Kayıt NO:"
#: includes/extensions/search-widget/class-search-widget.php:743
msgid "Clear"
-msgstr ""
+msgstr "Temizle"
#: includes/extensions/search-widget/class-search-widget.php:776
msgctxt "Close calendar"
@@ -1933,19 +1933,19 @@ msgstr "Bağlantı aynı pencerede mi açılsın?"
#: includes/widgets.php:23
msgid "GravityView Recent Entries"
-msgstr ""
+msgstr "GravityView En Son Kayıtlar"
#: includes/widgets.php:26
msgid "Display the most recent entries for a View"
-msgstr ""
+msgstr "Görünüme ait en son kayıtları görüntüleyin"
#: includes/widgets.php:231
msgid "Recent Entries"
-msgstr ""
+msgstr "En Son Kayıtlar"
#: includes/widgets.php:234
msgid "Entry #{entry_id}"
-msgstr ""
+msgstr "#{entry_id} Kayıt"
#: includes/widgets.php:242 includes/widgets.php:448
msgid "Title:"
@@ -1953,78 +1953,78 @@ msgstr "Başlık:"
#: includes/widgets.php:266
msgid "— Select a View as Entries Source —"
-msgstr ""
+msgstr "— Kayıt Kaynağı olacak Görünümü seçiniz —"
#: includes/widgets.php:280
msgid "Number of entries to show:"
-msgstr ""
+msgstr "Görüntülenecek kayıt sayısı:"
#: includes/widgets.php:287
msgid "Entry link text (required)"
-msgstr ""
+msgstr "Kayıt bağlantı yazısı (zorunlu)"
#: includes/widgets.php:294
msgid "Text or HTML to display after the link (optional)"
-msgstr ""
+msgstr "Bağlantıdan sonra görünecek yazı yada HTML (isteğe bağlı)"
#: includes/widgets.php:322
msgid "A search form for a specific GravityView."
-msgstr ""
+msgstr "Belirli bir Görünüme özel arama formu."
#: includes/widgets.php:329
msgid "GravityView Search"
-msgstr ""
+msgstr "GravityView Arama"
#: includes/widgets.php:416
#, php-format
msgid ""
"This widget is not configurable from this screen. Please configure it on the"
" %sWidgets page%s."
-msgstr ""
+msgstr "Bileşeni bu ekrandan ayarlayamazsınız. Lütfen %sEklentiler sayfasına%s gidiniz."
#: includes/widgets.php:458
msgid "Please select a View to search."
-msgstr ""
+msgstr "Arama yapmak için lütfen Görünüm seçiniz."
#: includes/widgets.php:466
msgid "View:"
-msgstr ""
+msgstr "Görünüm:"
#: includes/widgets.php:468
msgid "— Select a View —"
-msgstr ""
+msgstr "— Görünüm Seçin —"
#: includes/widgets.php:495
msgid "If Embedded, Page ID:"
-msgstr ""
+msgstr "Eğer Gömülüyse, Sayfa NO:"
#: includes/widgets.php:498
msgid ""
"To have a search performed on an embedded View, enter the ID of the post or "
"page where the View is embedded."
-msgstr ""
+msgstr "Gömülü bir Görünüm üzerinde arama yapmak istiyorsanız lütfen Görünümün gömülü olduğu sayfa yada yazı NO sunu giriniz."
#: includes/widgets.php:499 includes/widgets.php:536
msgid "Learn more…"
-msgstr ""
+msgstr "Daha fazlası için…"
#: includes/widgets.php:507
msgid "Searchable fields:"
-msgstr ""
+msgstr "Aranabilir alanlar:"
#: includes/widgets.php:508
msgid "Search Fields"
-msgstr ""
+msgstr "Arama Alanları"
#: includes/widgets.php:535
msgid ""
"You did not enter a number. The value entered should be a number, "
"representing the ID of the post or page the View is embedded on."
-msgstr ""
+msgstr "Bir sayı girmediniz. Girdiğiniz değer gömülü Görünümü içinde barındıran sayfa yada yazının NO su olmalıdır."
#: includes/widgets.php:542
msgid "There is no post or page with that ID."
-msgstr ""
+msgstr "Girdiğiniz NO herhangi bir sayfa yada yazıya ait değil."
#: includes/widgets.php:549
#, php-format
@@ -2032,11 +2032,11 @@ msgid ""
"The Post ID entered is not valid. You may have entered a post or page that "
"does not contain the selected View. Make sure the post contains the "
"following shortcode: %s"
-msgstr ""
+msgstr "Girilen NO geçerli değil. Seçili Görünümü barındırmayan bir sayfa yada yazı NO su girmiş olabilirsiniz. Lütfen %s kısakodunu içeren yazıya ait NO yu giriniz."
#: includes/widgets.php:554
msgid "The ID is already a View."
-msgstr ""
+msgstr "NO zaten bir Görünüme ait."
#: templates/fields/email.php:65
msgid "Email hidden; Javascript is required."
diff --git a/readme.md b/readme.md
index 933ed1d90e..948e3b35c0 100644
--- a/readme.md
+++ b/readme.md
@@ -19,4 +19,4 @@ cd /path/to/gravityview/
python /usr/bin/git-archive-all ../gravityview.zip
```
-This will create a `gravityview.zip` file in the directory above the cloned GravityView plugin on your computer, which includes the submodules.
+This will create a `gravityview.zip` file in the directory above the cloned GravityView plugin on your computer, which includes the submodules.
\ No newline at end of file
diff --git a/readme.txt b/readme.txt
index aa09c2c2e3..cd53ad160e 100644
--- a/readme.txt
+++ b/readme.txt
@@ -1,7 +1,7 @@
=== GravityView ===
Tags: gravity forms, directory, gravity forms directory
Requires at least: 3.3
-Tested up to: 4.1
+Tested up to: 4.1.1
Stable tag: trunk
Contributors: katzwebservices, luistinygod
License: GPL 3 or higher
@@ -20,6 +20,14 @@ Beautifully display your Gravity Forms entries. Learn more on [GravityView.co](h
== Changelog ==
+= 1.6.2 on February 23 =
+* Added: Two new hooks in the Custom Content field to enable conditional logic or enable `the_content` WordPress filter which will trigger the Video embed ([read how](http://docs.gravityview.co/article/227-how-can-i-transform-a-video-link-into-a-player-using-the-custom-content-field))
+* Fixed: Issue when embedding multiple DataTables views in the same page
+* Tweak: A more robust "Save View" procedure to prevent losing field configuration on certain browsers
+* Updated Translations:
+ - Bengali translation by [@tareqhi](https://www.transifex.com/accounts/profile/tareqhi/)
+ - Turkish translation by [@suhakaralar](https://www.transifex.com/accounts/profile/suhakaralar/)
+
= 1.6.1 on February 17 =
* Added: Allow Recent Entries to have an Embed Page ID
* Fixed: # of Recent Entries not saving
diff --git a/templates/fields/custom.php b/templates/fields/custom.php
index 8681085e3f..b471aa913f 100644
--- a/templates/fields/custom.php
+++ b/templates/fields/custom.php
@@ -18,7 +18,10 @@
// Tell the renderer not to wrap this field in an anchor tag.
$gravityview_view->field_data['field_settings']['show_as_link'] = false;
-$field_settings['content'] = trim(rtrim($field_settings['content']));
+// allow for custom content behavior before merge tags replacement
+$field_settings['content'] = apply_filters( 'gravityview/fields/custom/content_before', $field_settings['content'] );
+
+$field_settings['content'] = trim( rtrim( $field_settings['content'] ) );
// No custom content
if( empty( $field_settings['content'] ) ) {
@@ -35,6 +38,8 @@
}
+$content = apply_filters( 'gravityview/fields/custom/content_after', $content );
+
// Enqueue scripts needed for Gravity Form display, if form shortcode exists.
// Also runs `do_shortcode()`
echo GFCommon::gform_do_shortcode( $content );