Changeset 2708122
- Timestamp:
- 04/11/2022 03:15:15 PM (4 years ago)
- Location:
- datacake-core
- Files:
-
- 1 deleted
- 10 edited
- 1 copied
-
tags/1.2.7 (deleted)
-
tags/1.2.8 (copied) (copied from datacake-core/trunk)
-
tags/1.2.8/README.md (modified) (1 diff)
-
tags/1.2.8/README.txt (modified) (1 diff)
-
tags/1.2.8/datacake_core.php (modified) (2 diffs)
-
tags/1.2.8/src/Pub/js/datacake_core-public.js (modified) (2 diffs)
-
tags/1.2.8/src/Shortcodes/ChannelShortCode.php (modified) (2 diffs)
-
trunk/README.md (modified) (1 diff)
-
trunk/README.txt (modified) (1 diff)
-
trunk/datacake_core.php (modified) (2 diffs)
-
trunk/src/Pub/js/datacake_core-public.js (modified) (2 diffs)
-
trunk/src/Shortcodes/ChannelShortCode.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
datacake-core/tags/1.2.8/README.md
r2699568 r2708122 16 16 City SEO, this will replicate a text changing the city in the text for SEO purposes 17 17 18 * Version: V1.2. 718 * Version: V1.2.8 19 19 20 20 -
datacake-core/tags/1.2.8/README.txt
r2699568 r2708122 6 6 Tested up to: 5.9.2 7 7 Requires PHP: 7.2 8 Stable tag: 1.2. 79 Last Tag: 1.2. 68 Stable tag: 1.2.8 9 Last Tag: 1.2.7 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
datacake-core/tags/1.2.8/datacake_core.php
r2699568 r2708122 16 16 * Plugin URI: http://www.datacake.com.br 17 17 * Description: Plugin Datacake para linkar com as Funcionalidade do Data ISP/ISP OG - Redirecionar cidade baseada no cookie 18 * Version: 1.2. 718 * Version: 1.2.8 19 19 * Author: Paulo Peres Jr 20 20 * Author URI: https://github.com/PauloPeres … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define( 'DATACAKE_CORE_VERSION', '1.2. 7' );38 define( 'DATACAKE_CORE_VERSION', '1.2.8' ); 39 39 40 40 require_once __DIR__ . '/vendor/autoload.php'; -
datacake-core/tags/1.2.8/src/Pub/js/datacake_core-public.js
r2698960 r2708122 6 6 $('.compartivo_canais_busca #in-canal-type, .compartivo_canais_busca #in-canal-tag, .compartivo_canais_busca #in-canal-plano, .compartivo_canais_busca #in-canal-search').on('change blur search',function(){ 7 7 filter(); 8 }); 8 }); 9 9 10 function filter(){ 10 var current_type = $('.compartivo_canais_busca #in-canal-type').val();11 var current_tag = $('.compartivo_canais_busca #in-canal-tag').val();12 var current_plano = $('.compartivo_canais_busca #in-canal-plano').val();11 var current_type = $('.compartivo_canais_busca #in-canal-type').val(); 12 var current_tag = $('.compartivo_canais_busca #in-canal-tag').val(); 13 var current_plano = $('.compartivo_canais_busca #in-canal-plano').val(); 13 14 var current_name = $('.compartivo_canais_busca #in-canal-search').val(); 14 15 15 16 $('.channel-list .channel').show(); 17 18 var mylist = $('.channel-list #dk_list_class'); 19 var listitems = mylist.find(".channel"); 20 21 listitems.sort(function(a, b) { 22 var numberA = parseFloat($(a).attr('data-number')); 23 var numberB = parseFloat($(b).attr('data-number')); 24 return (numberA < numberB) ? -1 : (numberA > numberB) ? 1 : 0; 25 }) 26 $(mylist).append(listitems); 27 16 28 $('.channel-list .channel').each(function(index){ 17 29 var $el = $(this); 18 console.log($el.data('tags'),$el.data('cats'),$el.data('prods'))19 20 30 21 31 if(current_plano && current_plano != ""){ … … 44 54 }) 45 55 } 46 filter(); 56 57 setTimeout(function() { 58 filter(); 59 }, 500); 60 47 61 }); -
datacake-core/tags/1.2.8/src/Shortcodes/ChannelShortCode.php
r2699568 r2708122 91 91 92 92 93 $html_channels .= "<div class='$list_item_class $canal->ID $canal->post_name text-center valign_top channel' data-prods='$prod_slugs' data-cats='$cat_slugs' data-tags='$tags_slugs' data-number='$number' data-name='$canal->post_title' > 93 $html_channels .= "<div class='$list_item_class $canal->ID $canal->post_name text-center valign_top channel' data-prods='$prod_slugs' data-cats='$cat_slugs' data-tags='$tags_slugs' 94 data-number='$number' data-name='$canal->post_title' > 94 95 <img alt='Imagem do $canal->post_title' src='$image' class='channel-image' id='channel-image-$canal->ID'> 95 96 $canal->post_title<br>$number … … 134 135 </div>"; 135 136 } 136 $html .= "<div id=\"$id\" class=\"wpb_row channel-list\"><div class=\"$list_class\">";137 $html .= "<div id=\"$id\" class=\"wpb_row channel-list\"><div id='dk_list_class' class=\"$list_class\">"; 137 138 $html .= $html_channels; 138 139 $html .= "</div></div>"; -
datacake-core/trunk/README.md
r2699568 r2708122 16 16 City SEO, this will replicate a text changing the city in the text for SEO purposes 17 17 18 * Version: V1.2. 718 * Version: V1.2.8 19 19 20 20 -
datacake-core/trunk/README.txt
r2699568 r2708122 6 6 Tested up to: 5.9.2 7 7 Requires PHP: 7.2 8 Stable tag: 1.2. 79 Last Tag: 1.2. 68 Stable tag: 1.2.8 9 Last Tag: 1.2.7 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
datacake-core/trunk/datacake_core.php
r2699568 r2708122 16 16 * Plugin URI: http://www.datacake.com.br 17 17 * Description: Plugin Datacake para linkar com as Funcionalidade do Data ISP/ISP OG - Redirecionar cidade baseada no cookie 18 * Version: 1.2. 718 * Version: 1.2.8 19 19 * Author: Paulo Peres Jr 20 20 * Author URI: https://github.com/PauloPeres … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define( 'DATACAKE_CORE_VERSION', '1.2. 7' );38 define( 'DATACAKE_CORE_VERSION', '1.2.8' ); 39 39 40 40 require_once __DIR__ . '/vendor/autoload.php'; -
datacake-core/trunk/src/Pub/js/datacake_core-public.js
r2698960 r2708122 6 6 $('.compartivo_canais_busca #in-canal-type, .compartivo_canais_busca #in-canal-tag, .compartivo_canais_busca #in-canal-plano, .compartivo_canais_busca #in-canal-search').on('change blur search',function(){ 7 7 filter(); 8 }); 8 }); 9 9 10 function filter(){ 10 var current_type = $('.compartivo_canais_busca #in-canal-type').val();11 var current_tag = $('.compartivo_canais_busca #in-canal-tag').val();12 var current_plano = $('.compartivo_canais_busca #in-canal-plano').val();11 var current_type = $('.compartivo_canais_busca #in-canal-type').val(); 12 var current_tag = $('.compartivo_canais_busca #in-canal-tag').val(); 13 var current_plano = $('.compartivo_canais_busca #in-canal-plano').val(); 13 14 var current_name = $('.compartivo_canais_busca #in-canal-search').val(); 14 15 15 16 $('.channel-list .channel').show(); 17 18 var mylist = $('.channel-list #dk_list_class'); 19 var listitems = mylist.find(".channel"); 20 21 listitems.sort(function(a, b) { 22 var numberA = parseFloat($(a).attr('data-number')); 23 var numberB = parseFloat($(b).attr('data-number')); 24 return (numberA < numberB) ? -1 : (numberA > numberB) ? 1 : 0; 25 }) 26 $(mylist).append(listitems); 27 16 28 $('.channel-list .channel').each(function(index){ 17 29 var $el = $(this); 18 console.log($el.data('tags'),$el.data('cats'),$el.data('prods'))19 20 30 21 31 if(current_plano && current_plano != ""){ … … 44 54 }) 45 55 } 46 filter(); 56 57 setTimeout(function() { 58 filter(); 59 }, 500); 60 47 61 }); -
datacake-core/trunk/src/Shortcodes/ChannelShortCode.php
r2699568 r2708122 91 91 92 92 93 $html_channels .= "<div class='$list_item_class $canal->ID $canal->post_name text-center valign_top channel' data-prods='$prod_slugs' data-cats='$cat_slugs' data-tags='$tags_slugs' data-number='$number' data-name='$canal->post_title' > 93 $html_channels .= "<div class='$list_item_class $canal->ID $canal->post_name text-center valign_top channel' data-prods='$prod_slugs' data-cats='$cat_slugs' data-tags='$tags_slugs' 94 data-number='$number' data-name='$canal->post_title' > 94 95 <img alt='Imagem do $canal->post_title' src='$image' class='channel-image' id='channel-image-$canal->ID'> 95 96 $canal->post_title<br>$number … … 134 135 </div>"; 135 136 } 136 $html .= "<div id=\"$id\" class=\"wpb_row channel-list\"><div class=\"$list_class\">";137 $html .= "<div id=\"$id\" class=\"wpb_row channel-list\"><div id='dk_list_class' class=\"$list_class\">"; 137 138 $html .= $html_channels; 138 139 $html .= "</div></div>";
Note: See TracChangeset
for help on using the changeset viewer.