Changeset 3730708
- Timestamp:
- 10/06/2026 11:51:09 AM (3 weeks ago)
- Location:
- blog2social/trunk
- Files:
-
- 2 deleted
- 15 edited
-
assets/css/b2s/calendar.css (modified) (2 diffs)
-
assets/css/b2s/curation.css (modified) (3 diffs)
-
assets/css/b2s/ship.css (modified) (1 diff)
-
assets/css/b2s/wp/post-box.css (modified) (2 diffs)
-
assets/css/general.css (modified) (2 diffs)
-
assets/images/b2s/blog-post-icon.png (deleted)
-
assets/images/b2s/content-curation-icon.png (deleted)
-
assets/js/b2s/calendar.js (modified) (1 diff)
-
assets/js/b2s/curation.js (modified) (4 diffs)
-
blog2social.php (modified) (2 diffs)
-
includes/Ajax/Post.php (modified) (1 diff)
-
includes/B2S/Post/Item.php (modified) (1 diff)
-
includes/B2S/RePost/Item.php (modified) (1 diff)
-
includes/B2S/Video/Item.php (modified) (1 diff)
-
includes/Loader.php (modified) (3 diffs)
-
readme.txt (modified) (3 diffs)
-
views/b2s/post.calendar.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
blog2social/trunk/assets/css/b2s/calendar.css
r3698094 r3730708 303 303 #b2s-btn-select-blog-post, #b2s-btn-select-content-curation{ 304 304 margin-top:10px; 305 } 306 307 #b2s-show-post-type-modal .action-grid { 308 display: flex; 309 flex-direction: column; 310 gap: 10px; 311 } 312 313 #b2s-show-post-type-modal .b2s-compose-expand-btn.action-card { 314 display: flex; 315 align-items: center; 316 gap: 18px; 317 width: 100%; 318 min-width: 0; 319 min-height: 60px; 320 padding: 10px 15px; 321 overflow: hidden; 322 color: inherit; 323 text-align: left; 324 white-space: normal; 325 background: #fff; 326 border: 1px solid #d1d1d1; 327 border-radius: 12px; 328 box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.03); 329 transition: all .2s ease; 330 } 331 332 #b2s-show-post-type-modal .b2s-compose-expand-btn.action-card:hover, 333 #b2s-show-post-type-modal .b2s-compose-expand-btn.action-card:focus { 334 background: #EDF3FD; 335 border-color: #9cc4ff; 336 box-shadow: 0 0 0 1px rgba(59,130,246,.15), 0 4px 12px rgba(0,0,0,.04); 337 transform: translateY(-1px); 338 outline: none; 339 } 340 341 #b2s-show-post-type-modal .action-card .icon { 342 display: flex; 343 flex: 0 0 32px; 344 align-items: center; 345 justify-content: center; 346 width: 32px; 347 height: 32px; 348 border-radius: 50%; 349 } 350 351 #b2s-show-post-type-modal .action-card .icon-green { 352 color: #5da94c; 353 background: #e8f5e4; 354 } 355 356 #b2s-show-post-type-modal .action-card .icon-blue { 357 color: #4f8df7; 358 background: #eef4ff; 359 } 360 361 #b2s-show-post-type-modal .action-card .content { 362 min-width: 0; 363 } 364 365 #b2s-show-post-type-modal .action-title { 366 display: block; 367 color: #111827; 368 font-size: 16px; 369 font-weight: 600; 370 overflow-wrap: break-word; 305 371 } 306 372 … … 668 734 font-size: 13px; 669 735 } 670 -
blog2social/trunk/assets/css/b2s/curation.css
r3698094 r3730708 454 454 border-top: 1px solid #eee; 455 455 margin-top: 10px; 456 padding-top: 6px;457 456 } 458 457 … … 937 936 /* --- Loading spinner ----------------------------------------- */ 938 937 .b2s-loader-impulse { 939 color: # 6366f1;938 color: #79b331; 940 939 } 941 940 … … 1059 1058 .b2s-compose-send-options { 1060 1059 margin-top: 16px; 1061 padding: 16px;1062 1060 background: #f8fafc; 1063 1061 border: 1px solid #e2e8f0; -
blog2social/trunk/assets/css/b2s/ship.css
r3718668 r3730708 602 602 .b2s-post-item-loading-impulse-area{ 603 603 margin-top:5em; 604 } 605 .b2s-loader-impulse.b2s-post-item-loading-impulse-area{ 606 animation: 1.5s ease-in-out 0s normal none infinite running sk-pulseScaleOut; 607 background-color: #79b331; 608 border: 0; 609 box-shadow: none; 610 } 611 @media (prefers-reduced-motion: reduce) { 612 .b2s-loader-impulse.b2s-post-item-loading-impulse-area{ 613 animation: none; 614 } 604 615 } 605 616 .b2s-post-item-details-portal-img-area{ -
blog2social/trunk/assets/css/b2s/wp/post-box.css
r3150849 r3730708 4 4 } 5 5 .b2s-loader-impulse{ 6 animation: 1.5s ease-in-out 0s normal none infinite running sk-pulseScaleOut; 7 border-radius: 100%; 6 box-sizing: border-box; 7 border: 3px solid rgba(121, 179, 49, 0.2); 8 border-top-color: #79b331; 9 border-right-color: #a3d65c; 10 border-radius: 50%; 8 11 margin: 0 auto; 12 animation: b2s-loader-spin 0.8s linear infinite; 13 box-shadow: 0 2px 10px rgba(121, 179, 49, 0.16); 9 14 } 10 15 .b2s-loader-impulse{ 11 background-color: #79b331;16 background-color: transparent; 12 17 } 13 18 … … 16 21 width: 48px; 17 22 } 18 @keyframes sk-pulseScaleOut { 19 0% { 20 -webkit-transform: scale(0); 21 transform: scale(0); } 22 100% { 23 -webkit-transform: scale(1); 24 transform: scale(1); 25 opacity: 0; } 23 @keyframes b2s-loader-spin { 24 to { 25 transform: rotate(360deg); 26 } 27 } 28 29 @media (prefers-reduced-motion: reduce) { 30 .b2s-loader-impulse { 31 animation: none; 32 } 26 33 } 27 34 -
blog2social/trunk/assets/css/general.css
r3698094 r3730708 7213 7213 } 7214 7214 7215 .b2s-loader-impulse, .prg-loader-impulse{ 7215 .b2s-loader-impulse { 7216 box-sizing: border-box; 7217 border: 3px solid rgba(121, 179, 49, 0.2); 7218 border-top-color: #79b331; 7219 border-right-color: #a3d65c; 7220 border-radius: 50%; 7221 margin: 0 auto; 7222 animation: b2s-loader-spin 0.8s linear infinite; 7223 box-shadow: 0 2px 10px rgba(121, 179, 49, 0.16); 7224 } 7225 .prg-loader-impulse{ 7216 7226 animation: 1.5s ease-in-out 0s normal none infinite running sk-pulseScaleOut; 7217 7227 border-radius: 100%; 7218 7228 margin: 0 auto; 7219 }7220 .b2s-loader-impulse{7221 background-color: #79b331;7222 7229 } 7223 7230 .prg-loader-impulse{ … … 7243 7250 transform: scale(1); 7244 7251 opacity: 0; 7252 } 7253 } 7254 7255 @keyframes b2s-loader-spin { 7256 to { 7257 transform: rotate(360deg); 7258 } 7259 } 7260 7261 @media (prefers-reduced-motion: reduce) { 7262 .b2s-loader-impulse { 7263 animation: none; 7245 7264 } 7246 7265 } -
blog2social/trunk/assets/js/b2s/calendar.js
r3708960 r3730708 674 674 675 675 jQuery(document).on('click', '#b2s-btn-select-content-curation', function () { 676 window.location.href = jQuery('#b2sRedirectUrlContentCuration').val() + '&schedDate=' + jQuery('#b2sSelSchedDate').val();676 window.location.href = jQuery('#b2sRedirectUrlContentCuration').val() + '&schedDate=' + encodeURIComponent(jQuery('#b2sSelSchedDate').val()); 677 677 return false; 678 678 }); -
blog2social/trunk/assets/js/b2s/curation.js
r3708960 r3730708 2 2 //Load the "Share new post" area /////////////////////////////////////////////////////////////////// 3 3 var b2sComposeLoaded = false; 4 var b2sComposeInitialUrl = ''; 4 5 5 6 function showTextError(){ … … 22 23 b2sSetComposeCollapsed(false); 23 24 b2sLoadShipSettings(function () { 25 if (jQuery('#b2sSelSchedDate').val() !== '') { 26 var $settingsPanel = jQuery('#b2s-compose-settings-panel'); 27 if (!$settingsPanel.is(':visible')) { 28 jQuery('#b2s-compose-settings-toggle').trigger('click'); 29 } 30 31 var $shipType = jQuery('#b2s-post-curation-ship-type'); 32 $shipType.val('1').trigger('change'); 33 34 var schedDate = parseInt(jQuery('#b2sSelSchedDate').val(), 10); 35 if (!isNaN(schedDate)) { 36 jQuery('#b2s-post-curation-ship-date-date').datepicker('update', new Date(schedDate)); 37 } 38 } 24 39 b2sSetupNetworkGroupPreview(); 40 if (b2sComposeInitialUrl) { 41 jQuery('#b2s-compose-main-textarea').val(b2sComposeInitialUrl).trigger('input'); 42 b2sComposeInitialUrl = ''; 43 } 25 44 }); 26 45 }); … … 144 163 'post_lang': jQuery('#b2s-curation-user-lang').val(), 145 164 'post_id': 0, 146 'network_id': 0, //Facebook...need a general Endpoint165 'network_id': 0, 147 166 'network_type': 0, 148 'post_network_name': ' ',167 'post_network_name': 'generic', 149 168 'input_text': $textarea.val(), 150 169 'curation': 1 … … 1473 1492 1474 1493 if (params.get('page') === 'blog2social-post' && params.get('opencontent') === '1' ){ 1494 b2sComposeInitialUrl = params.get('url') || ''; 1475 1495 jQuery('#b2s-compose-expand-btn').trigger('click'); 1476 1496 } -
blog2social/trunk/blog2social.php
r3718668 r3730708 11 11 * Text Domain: blog2social 12 12 * Domain Path: /languages 13 * Version: 9.1. 313 * Version: 9.1.4 14 14 * Requires at least: 6.2 15 15 * Requires PHP: 7.4 … … 23 23 */ 24 24 25 define('B2S_PLUGIN_VERSION', '91 3');25 define('B2S_PLUGIN_VERSION', '914'); 26 26 define('B2S_PLUGIN_LANGUAGE', serialize(array('de_DE', 'en_US'))); 27 27 define('B2S_PLUGIN_DIR', plugin_dir_path(__FILE__)); -
blog2social/trunk/includes/Ajax/Post.php
r3718668 r3730708 1107 1107 1108 1108 //Handle image alt text, can be an array since json encoding 1109 $data['image_alt_text'] = is_string($data['image_alt_text']) ? $data['image_alt_text'] : (is_array($data['image_alt_text']) ? (isset(array_values($data['image_alt_text'])[0]) ? array_values($data['image_alt_text'])[0] : '') : ''); 1109 $imageAltText = isset($data['image_alt_text']) ? $data['image_alt_text'] : ''; 1110 if (is_array($imageAltText)) { 1111 $imageAltText = array_values($imageAltText); 1112 $imageAltText = isset($imageAltText[0]) ? $imageAltText[0] : ''; 1113 } elseif (!is_string($imageAltText)) { 1114 $imageAltText = ''; 1115 } 1116 $data['image_alt_text'] = $imageAltText; 1110 1117 1111 1118 $sendData = array("board" => isset($data['board']) ? sanitize_text_field($data['board']) : '', -
blog2social/trunk/includes/B2S/Post/Item.php
r3597881 r3730708 843 843 </li>'; 844 844 } 845 846 845 if ($this->type == 'draft') { 847 846 $browser = (get_post_meta($var->ID, "b2s_source", true) == "b2s_browser_extension") ? ' - <strong>' . esc_html__('via Browser-Extension', 'blog2social') . '</strong>' : ''; -
blog2social/trunk/includes/B2S/RePost/Item.php
r3698094 r3730708 123 123 124 124 // --- Advanced Filters collapsible --- 125 $content .= '<a class="b2s-rp-new-collapse-trigger collapsed" data-toggle="collapse" aria-expanded="false">';125 $content .= '<a class="b2s-rp-new-collapse-trigger" data-toggle="collapse" aria-expanded="true">'; 126 126 $content .= '<span>' . esc_html__('Advanced Filter', 'blog2social') . '</span>'; 127 127 $content .= '<span class="glyphicon glyphicon-chevron-down b2s-rp-new-chevron"></span>'; 128 128 $content .= '</a>'; 129 $content .= '<input hidden style="display:none;" type="radio" id="b2s-re-post-settings-option-1" name="b2s-re-post-settings-option" class="b2s-re-post-settings-option" checked value=" 0">';130 131 132 $content .= '<div id="b2s-rp-new-advanced-filters" style="display:none;" class="collapse">';129 $content .= '<input hidden style="display:none;" type="radio" id="b2s-re-post-settings-option-1" name="b2s-re-post-settings-option" class="b2s-re-post-settings-option" checked value="1">'; 130 131 132 $content .= '<div id="b2s-rp-new-advanced-filters" class="collapse in">'; 133 133 $content .= '<div class="b2s-rp-new-filter-list">'; 134 134 -
blog2social/trunk/includes/B2S/Video/Item.php
r3582950 r3730708 78 78 79 79 $publishLink = (!empty($var->publish_link)) ? '<a target="_blank" href="' . esc_url($var->publish_link) . '">' . esc_html__('show', 'blog2social') . '</a> | ' : ''; 80 $reshareLink = (!empty($var->publish_link)) ? '<a href="' . esc_url('admin.php?page=blog2social-curation&type=link&url=' . urlencode($var->publish_link)) . '">' . esc_html__('Share on social media', 'blog2social') . '</a> | ' : ''; 80 $reshareUrl = add_query_arg( 81 'url', 82 $var->publish_link, 83 admin_url('admin.php?page=blog2social-post&opencontent=1') 84 ); 85 $reshareLink = (!empty($var->publish_link)) ? '<a href="' . esc_url($reshareUrl) . '">' . esc_html__('Share on social media', 'blog2social') . '</a> | ' : ''; 81 86 82 87 $error = ''; -
blog2social/trunk/includes/Loader.php
r3708960 r3730708 74 74 define('B2S_PLUGIN_ALLOW_VIDEO_MIME_TYPE', serialize(array('video/x-msvideo', 'video/avi', 'video/mp4', 'video/mpeg', 'video/ogg', 'video/x-flv', 'video/quicktime', 'video/x-ms-asf'))); 75 75 define('B2S_PLUGIN_ALLOW_ADD_LINK', serialize(array(1, 2, 3, 6, 12, 43, 44, 45, 46))); 76 define('B2S_PLUGIN_REMOVE_PAGE_TITLE', serialize(array('blog2social', 'blog2social-video', 'blog2social-onboarding', 'blog2social-curation','blog2social-ship')));76 define('B2S_PLUGIN_REMOVE_PAGE_TITLE', serialize(array('blog2social', 'blog2social-video', 'blog2social-onboarding','blog2social-ship'))); 77 77 define('B2S_PLUGIN_CHANGELOG_CONTENT', serialize(array( 78 78 'version_info' => esc_html__('Blog2Social Version 9.1 (September 26)', 'blog2social'), … … 186 186 define('B2S_PLUGIN_SYSTEMREQUIREMENT_WPJSON', true); 187 187 define('B2S_PLUGIN_SYSTEMREQUIREMENT_OPENSSL', true); 188 define('B2S_PLUGIN_PAGE_SLUG', serialize(array('blog2social', 'blog2social-post', 'blog2social-calendar', 'blog2social- curation', 'blog2social-network', 'blog2social-settings', 'prg-post', 'blog2social-support', 'blog2social-premium', 'blog2social-sched', 'blog2social-approve', 'blog2social-publish', 'blog2social-notice', 'blog2social-ship', 'blog2social-video', 'blog2social-draft-post', 'prg-login', 'prg-ship')));188 define('B2S_PLUGIN_PAGE_SLUG', serialize(array('blog2social', 'blog2social-post', 'blog2social-calendar', 'blog2social-network', 'blog2social-settings', 'prg-post', 'blog2social-support', 'blog2social-premium', 'blog2social-sched', 'blog2social-approve', 'blog2social-publish', 'blog2social-notice', 'blog2social-ship', 'blog2social-video', 'blog2social-draft-post', 'prg-login', 'prg-ship'))); 189 189 define('B2S_PLUGIN_NETWORK_NOT_ALLOW_GIF', json_encode(array(18, 26, 38, 42, 43))); 190 190 define('B2S_PLUGIN_NETWORK_ANIMATE_GIF', json_encode(array(1 => array(0 => false, 1 => true), 3 => array(0 => true, 1 => true), 4 => array(0 => true), 6 => array(0 => true), 7 => array(0 => false), 11 => array(0 => true), 12 => array(0 => false, 1 => false), 14 => array(0 => true), 15 => array(0 => false), 17 => array(0 => false), 19 => array(0 => true, 1 => true), 21 => array(0 => true), 24 => array(0 => true), 44 => array(0 => false), 45 => array(0 => false)))); … … 1514 1514 $subPages[] = add_submenu_page('blog2social', esc_html__('Networks', 'blog2social'), esc_html__('Networks', 'blog2social'), 'blog2social_access', 'blog2social-network', array($this, 'b2sNetwork')); 1515 1515 $subPages[] = add_submenu_page('blog2social', esc_html__('Share Posts', 'blog2social'), esc_html__('Share Posts', 'blog2social'), 'blog2social_access', 'blog2social-post', array($this, 'b2sPost')); 1516 $subPages[] = add_submenu_page('blog2social_hidden', 'Create Social Media Posts', 'Social Media Posts', 'blog2social_access', 'blog2social-curation', array($this, 'b2sContentCuration'));1517 1516 $subPages[] = add_submenu_page('blog2social', esc_html__('Video Posts', 'blog2social'), esc_html__('Video Posts', 'blog2social'), 'blog2social_access', 'blog2social-video', array($this, 'b2sVideo')); 1518 1517 if ((defined("B2S_PLUGIN_USER_VERSION") && B2S_PLUGIN_USER_VERSION >= 3 && (!defined("B2S_PLUGIN_TRAIL_END") || (defined("B2S_PLUGIN_TRAIL_END") && strtotime(B2S_PLUGIN_TRAIL_END) < time()))) || (defined('B2S_PLUGIN_PERMISSION_INSIGHTS') && B2S_PLUGIN_PERMISSION_INSIGHTS == 1)) { -
blog2social/trunk/readme.txt
r3718668 r3730708 7 7 Tested up to: 7.1 8 8 Requires PHP: 7.4 9 Stable tag: 9.1. 39 Stable tag: 9.1.4 10 10 License: GPLv3 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 158 158 159 159 == Changelog == 160 = 9.1.4 = 161 Bugfix: Calendar new Post 160 162 = 9.1.3 = 161 163 Usability Optimization … … 256 258 257 259 == Upgrade Notice == 260 = 9.1.4 = 261 Bugfix: Calendar new Post 258 262 = 9.1.3 = 259 263 Usability Optimization -
blog2social/trunk/views/b2s/post.calendar.php
r3597881 r3730708 148 148 <input type="hidden" id="isOgMetaChecked" value="<?php echo (isset($metaSettings['og_active']) ? (int) $metaSettings['og_active'] : 0); ?>"> 149 149 <input type="hidden" id="isCardMetaChecked" value="<?php echo (isset($metaSettings['card_active']) ? (int) $metaSettings['card_active'] : 0); ?>"> 150 <input type="hidden" id="b2sRedirectUrlContentCuration" value="<?php echo esc_url( get_option('siteurl') . ((substr(get_option('siteurl'), -1, 1) == '/') ? '' : '/') . 'wp-admin/admin.php?page=blog2social-curation'); ?>">150 <input type="hidden" id="b2sRedirectUrlContentCuration" value="<?php echo esc_url(admin_url('admin.php?page=blog2social-post&opencontent=1')); ?>"> 151 151 <input type="hidden" id="b2sNotAllowGif" value="<?php echo esc_attr(implode(";", json_decode(B2S_PLUGIN_NETWORK_NOT_ALLOW_GIF, true))); ?>"> 152 152 <input type="hidden" id="b2sAnimateGif" value='<?php echo esc_attr(B2S_PLUGIN_NETWORK_ANIMATE_GIF); ?>'> … … 291 291 292 292 <div id="b2s-show-post-type-modal" class="modal fade" role="dialog" aria-labelledby="b2s-show-post-type-modal" aria-hidden="true" data-backdrop="false" style="display:none;z-index: 1070;"> 293 <div class="modal-dialog modal-lg">293 <div class="modal-dialog"> 294 294 <div class="modal-content"> 295 295 <div class="modal-header"> … … 298 298 </div> 299 299 <div class="modal-body"> 300 <div class="row"> 301 <div class="col-md-6 col-xs-12"> 302 <div class="b2s-post-type-area text-center"> 303 <div class="image"> 304 <img class="img-width-150" src="<?php echo esc_url(plugins_url('/assets/images/b2s/blog-post-icon.png', B2S_PLUGIN_FILE)); ?>" alt="blog post"> 305 </div> 306 <div class="text"> 307 <?php esc_html_e("Share your WordPress posts, pages or products", "blog2social") ?> 308 </div> 309 <div class="action"> 310 <button class="btn btn-primary" id="b2s-btn-select-blog-post"><?php esc_html_e("select", "blog2social"); ?></button> 311 </div> 312 </div> 313 </div> 314 <div class="col-md-6 col-xs-12"> 315 <div class="b2s-post-type-area text-center"> 316 <div class="image"> 317 <img class="img-width-150" src="<?php echo esc_url(plugins_url('/assets/images/b2s/content-curation-icon.png', B2S_PLUGIN_FILE)); ?>" alt="content curation"> 318 </div> 319 <div class="text"> 320 <?php esc_html_e("Create or share content from other sources", "blog2social") ?> 321 </div> 322 <div class="action"> 323 <button class="btn btn-primary" id="b2s-btn-select-content-curation"><?php esc_html_e("select", "blog2social"); ?></button> 324 </div> 325 </div> 326 </div> 327 <input type="hidden" id="b2sSelSchedDate" value=""> 328 329 </div> 300 <div class="action-grid"> 301 <button type="button" class="btn b2s-compose-expand-btn action-card" id="b2s-btn-select-blog-post"> 302 <span class="icon icon-green" aria-hidden="true"> 303 <svg viewBox="0 0 24 24" width="24" height="24" fill="none" 304 stroke="currentColor" stroke-width="2" 305 stroke-linecap="round" stroke-linejoin="round"> 306 <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/> 307 <path d="M14 2v6h6"/> 308 <path d="M8 13h8"/> 309 <path d="M8 17h8"/> 310 <path d="M8 9h3"/> 311 </svg> 312 </span> 313 <span class="content"> 314 <span class="action-title"><?php esc_html_e("Share your WordPress posts, pages or products", "blog2social"); ?></span> 315 </span> 316 </button> 317 <button type="button" class="btn b2s-compose-expand-btn action-card" id="b2s-btn-select-content-curation"> 318 <span class="icon icon-blue" aria-hidden="true"> 319 <svg viewBox="0 0 24 24" width="24" height="24" fill="none" 320 stroke="currentColor" stroke-width="2.5" 321 stroke-linecap="round"> 322 <path d="M12 5v14"/> 323 <path d="M5 12h14"/> 324 </svg> 325 </span> 326 <span class="content"> 327 <span class="action-title"><?php esc_html_e("Create or share content from other sources", "blog2social"); ?></span> 328 </span> 329 </button> 330 </div> 331 <input type="hidden" id="b2sSelSchedDate" value=""> 330 332 </div> 331 333 </div>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)