Changeset 3446822
- Timestamp:
- 01/26/2026 05:25:56 AM (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
easy-slider-revolution/trunk/admin/easy-slider-admin.php
r3154964 r3446822 2 2 /** 3 3 * ##################################################################### 4 * ### EASY SLIDER REVOLUTIONPLUGIN - PHP FUNCTIONS FOR WP DASHBOARD ###4 * ### EASY SLIDER PLUGIN - PHP FUNCTIONS FOR WP DASHBOARD ### 5 5 * ##################################################################### 6 6 * … … 9 9 * @copyright https://tridenttechnolabs.com 10 10 * @license GPLv2 or later 11 * Version: 1.1. 111 * Version: 1.1.3 12 12 */ 13 14 if ( ! defined( 'ABSPATH' ) ) exit; // EXIT IF ACCESSED DIRECTLY. 13 15 14 16 /** … … 20 22 $sample_post_title = sanitize_text_field( 'Sample Slider' ); 21 23 22 24 23 25 24 26 // check if the 'sample slider' already exists (plugin has been activated before). 25 $cpt_post = get_page_by_title( $sample_post_title, 'OBJECT', 'es_slider' ); 27 $args = [ 28 'post_type' => 'es_slider', 29 'title' => $sample_post_title, 30 'post_status' => 'any', 31 'posts_per_page' => 1, 32 'no_found_rows' => true, 33 'update_post_meta_cache' => false, 34 'update_post_term_cache' => false, 35 ]; 36 37 $query = new WP_Query( $args ); 38 39 $cpt_post = ! empty( $query->posts ) ? $query->posts[0] : null; 40 wp_reset_postdata(); 41 26 42 27 43 if ( is_null( $cpt_post ) ) { … … 53 69 $button_background = '#4f3214'; 54 70 $button_color = '#fff'; 55 } 71 } 56 72 57 73 … … 60 76 $button_background = sanitize_hex_color( $button_background ); // Assuming $button_background is a hex color code. 61 77 $button_color = sanitize_hex_color( $button_color ); // Assuming $button_color is a hex color code. 62 78 63 79 64 80 … … 71 87 $content .= "</div>\n"; 72 88 $content = wp_kses_post( $content ); // Assuming $content contains HTML, this will allow safe HTML. 73 89 74 90 update_post_meta($cpt_id, 'sa_slide' . $i . '_content', $content); 75 91 $slider_link_url = "#"; … … 239 255 } 240 256 241 242 function enqueue_tinymce_plugin() { 257 add_action( 'admin_init', 'esr_enqueue_tinymce' ); 258 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound 259 function esr_enqueue_tinymce() { 243 260 if ( current_user_can('edit_posts') || current_user_can('edit_pages') ) { 244 261 add_filter('mce_external_plugins', function($plugins) { 245 262 $url = plugins_url('js/add_tinymce_button.js', __FILE__); 246 error_log('TinyMCE Plugin URL: ' . $url); // Check the URL in the PHP error log 263 247 264 $plugins['cpt_slider'] = $url; 248 265 return $plugins; … … 254 271 } 255 272 } 256 add_action('admin_init', 'enqueue_tinymce_plugin'); 273 257 274 258 275 … … 268 285 function esrcpt_slider_register() { 269 286 $labels = array( 270 'name' => _x( 'Easy Sliders', 'post type general name', ' sa_slider_textdomain' ),271 'singular_name' => _x( 'Slider', 'post type singular name', ' sa_slider_textdomain' ),272 'menu_name' => __( 'Easy Slider', ' sa_slider_textdomain' ),273 'add_new' => __( 'Add New Slider', ' sa_slider_textdomain' ),274 'add_new_item' => __( 'Add New Slider', ' sa_slider_textdomain' ),275 'edit_item' => __( 'Edit Slider', ' sa_slider_textdomain' ),276 'new_item' => __( 'New Slider', ' sa_slider_textdomain' ),277 'view_item' => __( 'View Slider', ' sa_slider_textdomain' ),278 'not_found' => __( 'No sliders found', ' sa_slider_textdomain' ),279 'not_found_in_trash' => __( 'No sliders found in Trash', ' sa_slider_textdomain' ),287 'name' => _x( 'Easy Sliders', 'post type general name', 'easy-slider-revolution' ), 288 'singular_name' => _x( 'Slider', 'post type singular name', 'easy-slider-revolution' ), 289 'menu_name' => __( 'Easy Slider', 'easy-slider-revolution' ), 290 'add_new' => __( 'Add New Slider', 'easy-slider-revolution' ), 291 'add_new_item' => __( 'Add New Slider', 'easy-slider-revolution' ), 292 'edit_item' => __( 'Edit Slider', 'easy-slider-revolution' ), 293 'new_item' => __( 'New Slider', 'easy-slider-revolution' ), 294 'view_item' => __( 'View Slider', 'easy-slider-revolution' ), 295 'not_found' => __( 'No sliders found', 'easy-slider-revolution' ), 296 'not_found_in_trash' => __( 'No sliders found in Trash', 'easy-slider-revolution' ), 280 297 ); 281 298 … … 283 300 $args = array( 284 301 'labels' => $labels, 285 'description' => __( 'Easy Slider', ' sa_slider_textdomain' ),302 'description' => __( 'Easy Slider', 'easy-slider-revolution' ), 286 303 'public' => false, 287 304 'exclude_from_search' => true, … … 391 408 foreach ( $sa_slider_query->posts as $sa_post ) { 392 409 $title = esc_js( $sa_post->post_title ); 393 echo 'sa_title_arr[' . esc_js( $count ) . "] = '" . $title . "';\n"; 410 411 echo 'sa_title_arr[' . esc_js( $count ) . "] = '" . esc_js( $title ) . "';\n"; 394 412 echo 'sa_id_arr[' . esc_js( $count ) . "] = '" . esc_js( $sa_post->ID ) . "';\n"; 395 413 $count++; … … 416 434 $info_moved = get_post_meta( $post->ID, 'sa_info_moved', true ); 417 435 if ( '1' === $info_added ) { 418 add_meta_box( 'esrcpt_slide_added', __( 'Information' ), 'esrcpt_slide_added_content', 'es_slider', 'normal', 'high' );436 add_meta_box( 'esrcpt_slide_added', __( 'Information' ,'easy-slider-revolution'), 'esrcpt_slide_added_content', 'es_slider', 'normal', 'high' ); 419 437 update_post_meta( $post->ID, 'sa_info_added', '0' ); 420 438 } 421 439 if ( '1' === $info_deleted ) { 422 add_meta_box( 'esrcpt_slide_deleted', __( 'Information' ), 'esrcpt_slide_deleted_content', 'es_slider', 'normal', 'high' );440 add_meta_box( 'esrcpt_slide_deleted', __( 'Information' ,'easy-slider-revolution'), 'esrcpt_slide_deleted_content', 'es_slider', 'normal', 'high' ); 423 441 update_post_meta( $post->ID, 'sa_info_deleted', '0' ); 424 442 } 425 443 if ( '1' === $info_duplicated ) { 426 add_meta_box( 'esrcpt_slide_duplicated', __( 'Information' ), 'esrcpt_slide_duplicated_content', 'es_slider', 'normal', 'high' );444 add_meta_box( 'esrcpt_slide_duplicated', __( 'Information' ,'easy-slider-revolution'), 'esrcpt_slide_duplicated_content', 'es_slider', 'normal', 'high' ); 427 445 update_post_meta( $post->ID, 'sa_info_duplicated', '0' ); 428 446 } 429 447 if ( '1' === $info_moved ) { 430 add_meta_box( 'esrcpt_slide_moved', __( 'Information' ), 'esrcpt_slide_moved_content', 'es_slider', 'normal', 'high' );448 add_meta_box( 'esrcpt_slide_moved', __( 'Information' ,'easy-slider-revolution'), 'esrcpt_slide_moved_content', 'es_slider', 'normal', 'high' ); 431 449 update_post_meta( $post->ID, 'sa_info_moved', '0' ); 432 450 } 433 add_meta_box( 'esrcpt_slider_slides', __( 'Slides' ), 'esrcpt_slider_slides_content', 'es_slider', 'normal', 'high' );434 add_meta_box( 'esrcpt_slider_shortcode', __( 'Shortcode' ), 'esrcpt_slider_shortcode_content', 'es_slider', 'side', 'high' );451 add_meta_box( 'esrcpt_slider_slides', __( 'Slides' ,'easy-slider-revolution'), 'esrcpt_slider_slides_content', 'es_slider', 'normal', 'high' ); 452 add_meta_box( 'esrcpt_slider_shortcode', __( 'Shortcode','easy-slider-revolution' ), 'esrcpt_slider_shortcode_content', 'es_slider', 'side', 'high' ); 435 453 remove_meta_box( 'mymetabox_revslider_0', 'es_slider', 'normal' ); // remove revolution slider meta box. 436 454 } … … 445 463 if (!function_exists('esrcpt_slide_added_content')) { 446 464 function esrcpt_slide_added_content() { 447 echo "<h3 id='sa_slide_added_mess'>" . esc_html__('A new slide has been added to this slider.', ' your-text-domain') . "</h3>";465 echo "<h3 id='sa_slide_added_mess'>" . esc_html__('A new slide has been added to this slider.', 'easy-slider-revolution') . "</h3>"; 448 466 } 449 467 } … … 456 474 if (!function_exists('esrcpt_slide_deleted_content')) { 457 475 function esrcpt_slide_deleted_content() { 458 echo "<h3 id='sa_slide_deleted_mess'>" . esc_html__('A slide has been deleted from this slider.', ' your-text-domain') . "</h3>";476 echo "<h3 id='sa_slide_deleted_mess'>" . esc_html__('A slide has been deleted from this slider.', 'easy-slider-revolution') . "</h3>"; 459 477 } 460 478 } … … 466 484 if (!function_exists('esrcpt_slide_duplicated_content')) { 467 485 function esrcpt_slide_duplicated_content() { 468 echo "<h3 id='sa_slide_duplicated_mess'>" . esc_html__('A slide has been duplicated (copied) within this slider.', ' your-text-domain') . "</h3>";486 echo "<h3 id='sa_slide_duplicated_mess'>" . esc_html__('A slide has been duplicated (copied) within this slider.', 'easy-slider-revolution') . "</h3>"; 469 487 } 470 488 } … … 477 495 if (!function_exists('esrcpt_slide_moved_content')) { 478 496 function esrcpt_slide_moved_content() { 479 echo "<h3 id='sa_slide_moved_mess'>" . esc_html__('The slide order of this slider has been changed.', ' your-text-domain') . "</h3>";497 echo "<h3 id='sa_slide_moved_mess'>" . esc_html__('The slide order of this slider has been changed.', 'easy-slider-revolution') . "</h3>"; 480 498 } 481 499 } … … 499 517 echo '<div class=""><span style="margin-right:20px">Slider Height:</span>'; 500 518 echo "<input type='text' style='width:50px' id='slider_height' name='slider_height' placeholder='500' "; 501 echo "value=' '/>px</div>\n";519 echo "value='" . esc_attr( $slide_height ) . "'/>px</div>\n"; 502 520 503 521 // NONCE TO PREVENT CSRF SECURITY ATTACKS. … … 699 717 $slide_data[ $count ]['link_target'] = 'sa_slide' . $i . '_link_target'; 700 718 $slide_data[ $count ]['button_background'] = 'sa_slide'. $i . '_button_background'; 701 $slide_data[ $count ]['button_color'] = 'sa_slide' . $i. '_button_color'; 719 $slide_data[ $count ]['button_color'] = 'sa_slide' . $i. '_button_color'; 702 720 $slide_data[ $count ]['popup_type'] = 'sa_slide' . $i . '_popup_type'; 703 721 $slide_data[ $count ]['popup_imageid'] = 'sa_slide' . $i . '_popup_imageid'; … … 778 796 $tabs_num = $i + 1; 779 797 echo "<div id='slide_" . esc_html( $tabs_num ) . "_tabs' class='sa_slide_tabs'>\n"; 780 798 781 799 782 800 /** … … 875 893 echo "</div>\n"; 876 894 } else { 877 echo "<div style='background: transparent url(". plugins_url( '../images/image_placeholder_popup.jpg', __FILE__).") no-repeat top left;background-color:#ffffff; background-size:" . esc_attr( $slide_image_size ) . '; ';895 echo "<div style='background: transparent url(".esc_url( plugins_url( '../images/image_placeholder_popup.jpg', __FILE__ ) ).") no-repeat top left;background-color:#ffffff; background-size:" . esc_attr( $slide_image_size ) . '; '; 878 896 echo 'background-repeat:' . esc_attr( $slide_image_repeat ) . '; background-color:' . esc_attr( $slide_image_color ) . '; '; 879 897 echo 'background-position:' . esc_attr( $slide_image_pos ) . ";'></div>\n"; … … 1001 1019 } 1002 1020 1003 /** customized Button for each slide **/ 1021 /** customized Button for each slide **/ 1004 1022 1005 1023 //a display text of button on each slide … … 1039 1057 echo "</div>\n"; 1040 1058 1041 1059 1042 1060 1043 1061 echo "<div style='clear:both; float:none; width:100%; height:1px;'></div>\n"; … … 1045 1063 echo "</div>\n"; 1046 1064 1047 1065 1048 1066 echo "</div>\n"; 1049 1067 … … 1098 1116 $sanitize_title = sanitize_text_field( $post_title ); 1099 1117 $where = array( 'ID' => $post->ID ); 1118 //phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching 1100 1119 $wpdb->update( $wpdb->posts, array( 'post_title' => $sanitize_title ), $where ); // db call ok; no-cache ok. 1101 1120 } … … 1109 1128 $total_slides = 1; 1110 1129 } 1111 1130 1112 1131 $duplicate_slide = 0; 1113 1114 1132 1133 1115 1134 $move_slide_up = 0; 1116 1135 1117 1136 1118 1137 // UPDATE CONTENT FOR EACH SLIDE. … … 1281 1300 $slide_link_target_saved = 'sa_slide' . $slides_saved . '_link_target'; 1282 1301 $slide_button_background_saved = 'sa_slide' . $slides_saved . '_button_background'; 1283 $slide_button_color_saved = 'sa_slide' . $slides_saved .'_button_color'; 1302 $slide_button_color_saved = 'sa_slide' . $slides_saved .'_button_color'; 1284 1303 $slide_popup_type_saved = 'NONE'; 1285 1304 $slide_popup_imageid_saved = ''; … … 1357 1376 $slide1_link_target = sanitize_text_field( wp_unslash( $_POST[ 'sa_slide' . $slide1 . '_link_target' ] ) ); 1358 1377 } 1359 if( isset( $_POST['sa_slide' . $slide1 . 'button_background' ] ) ){ 1360 $slide1_button_background = sanitize_text_field( wp_unslash( $_POST['sa_slide' . $slide1. '_button_background'])); 1361 } 1362 if( isset( $_POST['sa_slide' . $slide1 . 'button_color' ] ) ){ 1363 $slide1_button_color = sanitize_text_field( wp_unslash( $_POST['sa_slide' . $slide1. '_button_color'])); 1364 } 1378 $bg_key = 'sa_slide' . $slide1 . '_button_background'; 1379 $color_key = 'sa_slide' . $slide1 . '_button_color'; 1380 1381 if ( isset( $_POST[ $bg_key ] ) ) { 1382 $slide1_button_background = sanitize_text_field( wp_unslash( $_POST[ $bg_key ] ) ); 1383 } 1384 1385 if ( isset( $_POST[ $color_key ] ) ) { 1386 $slide1_button_color = sanitize_text_field( wp_unslash( $_POST[ $color_key ] ) ); 1387 } 1388 1365 1389 1366 1390 $slide1_popup_type = ''; … … 1443 1467 $slide2_link_target = sanitize_text_field( wp_unslash( $_POST[ 'sa_slide' . $slide2 . '_link_target' ] ) ); 1444 1468 } 1445 if( isset( $_POST['sa_slide'.$slide2.'_button_background'] )){ 1446 $slide2_button_background = sanitize_text_field( wp_unslash ($_POST['sa_slide' .$slide2.'_button_background'])); 1447 } 1448 if( isset( $_POST['sa_slide'.$slide2.'_button_color'] )){ 1449 $slide2_button_color = sanitize_text_field( wp_unslash ($_POST['sa_slide' .$slide2.'_button_color'])); 1450 } 1469 1470 $bg_key2 = 'sa_slide' . $slide2 . '_button_background'; 1471 $color_key2 = 'sa_slide' . $slide2 . '_button_color'; 1472 1473 if ( isset( $_POST[ $bg_key2 ] ) ) { 1474 $slide2_button_background = sanitize_text_field( wp_unslash( $_POST[ $bg_key2 ] ) ); 1475 } 1476 1477 if ( isset( $_POST[ $color_key2 ] ) ) { 1478 $slide2_button_color = sanitize_text_field( wp_unslash( $_POST[ $color_key2 ] ) ); 1479 } 1480 1451 1481 $slide2_popup_type = ''; 1452 1482 $slide2_popup_imageid = ''; … … 1537 1567 // UPDATE SLIDER SETTINGS. 1538 1568 update_post_meta( $post->ID, 'sa_num_slides', abs( intval( $slides_saved ) ) ); 1539 1569 1540 1570 update_post_meta( $post->ID, 'sa_disable_visual_editor', '0' ); 1541 1571 1542 1572 if ( isset( $_POST['sa_info_added'] ) ) { 1543 1573 update_post_meta( $post->ID, 'sa_info_added', abs( intval( $_POST['sa_info_added'] ) ) ); … … 1551 1581 1552 1582 update_post_meta( $post->ID, 'sa_info_duplicated', 0 ); 1553 1554 1583 1584 1555 1585 update_post_meta( $post->ID, 'sa_move_slide_up', 0 ); 1556 1586 1557 1587 update_post_meta( $post->ID, 'sa_info_moved', 0); 1558 1559 1588 1589 1560 1590 update_post_meta( $post->ID, 'sa_slide_duration', '10' ); 1561 1562 1591 1592 1563 1593 update_post_meta( $post->ID, 'sa_slide_transition', '0.2' ); 1564 1594 1565 1595 1566 1596 update_post_meta( $post->ID, 'sa_slide_by', '1' ); 1567 1568 1597 1598 1569 1599 update_post_meta( $post->ID, 'sa_loop_slider', '1' ); 1570 1571 1600 1601 1572 1602 update_post_meta( $post->ID, 'sa_stop_hover', '1' ); 1573 1574 1603 1604 1575 1605 update_post_meta( $post->ID, 'sa_nav_arrows', '1' ); 1576 1606 1577 1607 update_post_meta( $post->ID, 'sa_pagination', '1' ); 1578 1608 1579 1609 update_post_meta( $post->ID, 'sa_random_order', '0' ); 1580 1581 1610 1611 1582 1612 update_post_meta( $post->ID, 'sa_reverse_order', '0' ); 1583 1613 1584 1614 1585 1615 update_post_meta( $post->ID, 'sa_shortcodes', '0' ); 1586 1587 1616 1617 1588 1618 update_post_meta( $post->ID, 'sa_mouse_drag', '1' ); 1589 1590 1619 1620 1591 1621 update_post_meta( $post->ID, 'sa_touch_drag', '1' ); 1592 1622 1593 1623 1594 1624 update_post_meta( $post->ID, 'sa_mousewheel', '0' ); 1595 1625 1596 1626 1597 1627 update_post_meta( $post->ID, 'sa_click_advance', '0' ); 1598 1628 1599 1629 update_post_meta( $post->ID, 'sa_auto_height', '0' ); 1600 1601 1630 1631 1602 1632 update_post_meta( $post->ID, 'sa_vert_center', '0' ); 1603 1633 1604 1634 1605 1635 // UPDATE SLIDER ITEMS DISPLAYED. … … 1608 1638 1609 1639 update_post_meta( $post->ID, 'sa_items_width2', '768'); 1610 1640 1611 1641 update_post_meta( $post->ID, 'sa_items_width3', '980' ); 1612 1613 1642 1643 1614 1644 update_post_meta( $post->ID, 'sa_items_width4', '1200'); 1615 1645 1616 1646 update_post_meta( $post->ID, 'sa_items_width5', '1500' ); 1617 1618 1647 1648 1619 1649 update_post_meta( $post->ID, 'sa_items_width6', '1500' ); 1620 1621 1650 1651 1622 1652 update_post_meta( $post->ID, 'sa_transition', 'Slide'); 1623 1624 1653 1654 1625 1655 update_post_meta( $post->ID, 'sa_hero_slider', '0' ); 1626 1627 1656 1657 1628 1658 update_post_meta( $post->ID, 'sa_showcase_slider', '0' ); 1629 1630 1659 1660 1631 1661 update_post_meta( $post->ID, 'sa_showcase_width', '120' ); 1632 1662 1633 1663 1634 1664 update_post_meta( $post->ID, 'sa_showcase_tablet', '0' ); 1635 1636 1665 1666 1637 1667 update_post_meta( $post->ID, 'sa_showcase_width_tab', '130' ); 1638 1639 1668 1669 1640 1670 update_post_meta( $post->ID, 'sa_showcase_mobile', '0' ); 1641 1671 1642 1672 update_post_meta( $post->ID, 'sa_showcase_width_mob', '140' ); 1643 1673 1644 1674 1645 1675 // UPDATE SLIDER STYLE. 1646 1676 1647 1677 $post_css_id = 'Slider_'.$post->ID; 1648 1678 update_post_meta( $post->ID, 'sa_css_id', sanitize_text_field( $post_css_id ) ); 1649 1679 1650 1680 1651 1681 update_post_meta( $post->ID, 'sa_background_color', 'rgba(0,0,0,0)' ); 1652 1682 1653 1683 update_post_meta( $post->ID, 'sa_border_width', '0' ); 1654 1684 1655 1685 update_post_meta( $post->ID, 'sa_border_color', 'rgba(0,0,0,0)' ); 1656 1657 1686 1687 1658 1688 update_post_meta( $post->ID, 'sa_border_radius', '0' ); 1659 1689 1660 1690 update_post_meta( $post->ID, 'sa_wrapper_padd_top', '0' ); 1661 1691 1662 1692 update_post_meta( $post->ID, 'sa_wrapper_padd_right','0' ); 1663 1693 1664 1694 update_post_meta( $post->ID, 'sa_wrapper_padd_bottom', '0' ); 1665 1695 1666 1696 update_post_meta( $post->ID, 'sa_wrapper_padd_left', '0' ); 1667 if($_POST['slider_height']){ 1668 update_post_meta( $post->ID, 'sa_slide_min_height_perc', $_POST["slider_height"] ); 1669 }else{ 1670 update_post_meta( $post->ID, 'sa_slide_min_height_perc', '500' ); 1671 } 1697 $slider_height = isset( $_POST['slider_height'] ) ? absint( wp_unslash( $_POST['slider_height'] ) ) : 500; 1698 1699 update_post_meta( $post->ID, 'sa_slide_min_height_perc', $slider_height ); 1700 1672 1701 update_post_meta( $post->ID, 'sa_slide_padding_tb', '5' ); 1673 1702 1674 1703 update_post_meta( $post->ID, 'sa_slide_padding_lr', '5' ); 1675 1704 1676 1705 update_post_meta( $post->ID, 'sa_slide_margin_lr','0' ); 1677 1678 1706 1707 1679 1708 update_post_meta( $post->ID, 'sa_slide_icons_location', 'Center Center' ); 1680 1681 1709 1710 1682 1711 update_post_meta( $post->ID, 'sa_slide_icons_color', 'white' ); 1683 1712 1713 1714 1684 1715 update_post_meta( $post->ID, 'sa_autohide_arrows', '0' ); 1685 1716 1686 1717 1687 1718 update_post_meta( $post->ID, 'sa_dot_per_slide', '1' ); 1688 1689 1719 1720 1690 1721 update_post_meta( $post->ID, 'sa_slide_icons_visible', '1' ); 1691 1722 1692 1723 1693 1724 update_post_meta( $post->ID, 'sa_slide_icons_fullslide', '0' ); 1694 1725 1695 1726 1696 1727 // OTHER SETTINGS. 1697 1728 $other_settings = ''; 1698 1729 1699 1730 $other_settings .= '0'; 1700 1731 1701 1732 1702 1733 $other_settings .= '|0'; … … 1704 1735 1705 1736 $other_settings .= '|0'; 1706 1737 1707 1738 $other_settings .= '|0'; 1708 1739 … … 1711 1742 // disable preview setting (now removed & permanently disabled). 1712 1743 $other_settings .= '|1'; 1713 1744 1714 1745 $other_settings .= '|full'; 1715 1746 1716 1747 1717 1748 $other_settings .= '|0'; 1718 1749 1719 1750 update_post_meta( $post->ID, 'sa_other_settings', $other_settings ); 1720 1751 // starting slide number. … … 1772 1803 add_submenu_page( 1773 1804 'edit.php?post_type=sa_slider', 1774 __( 'Re-Order Slides', ' menu-sa-order' ),1775 __( 'Re-Order Slides', ' menu-sa-order' ),1805 __( 'Re-Order Slides', 'easy-slider-revolution' ), 1806 __( 'Re-Order Slides', 'easy-slider-revolution' ), 1776 1807 'manage_options', 1777 1808 'reorderslides', … … 1790 1821 1791 1822 echo "<div id='sa_reorder_slides'>\n"; 1792 echo '<h1>'.esc_html__('EASY SLIDER - Re-Order Slides', ' your-text-domain').'</h1>';1823 echo '<h1>'.esc_html__('EASY SLIDER - Re-Order Slides', 'easy-slider-revolution').'</h1>'; 1793 1824 1794 1825 if ( isset( $_SERVER['REQUEST_METHOD'] ) && ( 'POST' === $_SERVER['REQUEST_METHOD'] ) … … 1835 1866 } 1836 1867 1837 echo "<h3 id='sar_success_message'>".esc_html__('SLIDE ORDER HAS BEEN UPDATED', ' your-text-domain')."</h3>";1868 echo "<h3 id='sar_success_message'>".esc_html__('SLIDE ORDER HAS BEEN UPDATED', 'easy-slider-revolution')."</h3>"; 1838 1869 } else { 1839 1870 if ( isset( $_POST['sar_del_slides'] ) && ( '' !== $_POST['sar_del_slides'] ) ) { … … 1884 1915 1885 1916 if ( 1 === $tot_del ) { 1886 echo "<h3 id='sar_success_message'>" . esc_html( $tot_del ) . ' '.esc_html__('SLIDE HAS BEEN DELETED', ' your-text-domain').'</h3>';1917 echo "<h3 id='sar_success_message'>" . esc_html( $tot_del ) . ' '.esc_html__('SLIDE HAS BEEN DELETED', 'easy-slider-revolution').'</h3>'; 1887 1918 } else { 1888 echo "<h3 id='sar_success_message'>" . esc_html( $tot_del ) . ' '.esc_html__('SLIDES HAVE BEEN DELETED', ' your-text-domain').'</h3>';1919 echo "<h3 id='sar_success_message'>" . esc_html( $tot_del ) . ' '.esc_html__('SLIDES HAVE BEEN DELETED', 'easy-slider-revolution').'</h3>'; 1889 1920 } 1890 1921 }
Note: See TracChangeset
for help on using the changeset viewer.