Plugin Directory

Changeset 3446822


Ignore:
Timestamp:
01/26/2026 05:25:56 AM (6 weeks ago)
Author:
tridenttechnolabs
Message:

admin file update in slider

File:
1 edited

Legend:

Unmodified
Added
Removed
  • easy-slider-revolution/trunk/admin/easy-slider-admin.php

    r3154964 r3446822  
    22/**
    33 * #####################################################################
    4  * ### EASY SLIDER REVOLUTION PLUGIN - PHP FUNCTIONS FOR WP DASHBOARD ###
     4 * ### EASY SLIDER PLUGIN - PHP FUNCTIONS FOR WP DASHBOARD ###
    55 * #####################################################################
    66 *
     
    99 * @copyright   https://tridenttechnolabs.com
    1010 * @license     GPLv2 or later
    11  * Version: 1.1.1
     11 * Version: 1.1.3
    1212 */
     13
     14if ( ! defined( 'ABSPATH' ) ) exit; // EXIT IF ACCESSED DIRECTLY.
    1315
    1416/**
     
    2022    $sample_post_title = sanitize_text_field( 'Sample Slider' );
    2123
    22    
     24
    2325
    2426        // 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
    2642
    2743        if ( is_null( $cpt_post ) ) {
     
    5369                    $button_background = '#4f3214';
    5470                    $button_color = '#fff';
    55                 } 
     71                }
    5672
    5773
     
    6076                $button_background = sanitize_hex_color( $button_background ); // Assuming $button_background is a hex color code.
    6177                $button_color = sanitize_hex_color( $button_color ); // Assuming $button_color is a hex color code.
    62                
     78
    6379
    6480
     
    7187                $content .= "</div>\n";
    7288                $content = wp_kses_post( $content ); // Assuming $content contains HTML, this will allow safe HTML.
    73                
     89
    7490                update_post_meta($cpt_id, 'sa_slide' . $i . '_content', $content);
    7591                $slider_link_url = "#";
     
    239255}
    240256
    241 
    242 function enqueue_tinymce_plugin() {
     257add_action( 'admin_init', 'esr_enqueue_tinymce' );
     258// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound
     259function esr_enqueue_tinymce() {
    243260    if ( current_user_can('edit_posts') || current_user_can('edit_pages') ) {
    244261        add_filter('mce_external_plugins', function($plugins) {
    245262            $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
    247264            $plugins['cpt_slider'] = $url;
    248265            return $plugins;
     
    254271    }
    255272}
    256 add_action('admin_init', 'enqueue_tinymce_plugin');
     273
    257274
    258275
     
    268285    function esrcpt_slider_register() {
    269286        $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' ),
    280297        );
    281298
     
    283300        $args   = array(
    284301            'labels'              => $labels,
    285             'description'         => __( 'Easy Slider', 'sa_slider_textdomain' ),
     302            'description'         => __( 'Easy Slider', 'easy-slider-revolution' ),
    286303            'public'              => false,
    287304            'exclude_from_search' => true,
     
    391408            foreach ( $sa_slider_query->posts as $sa_post ) {
    392409                $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";
    394412                echo 'sa_id_arr[' . esc_js( $count ) . "] = '" . esc_js( $sa_post->ID ) . "';\n";
    395413                $count++;
     
    416434        $info_moved      = get_post_meta( $post->ID, 'sa_info_moved', true );
    417435        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' );
    419437            update_post_meta( $post->ID, 'sa_info_added', '0' );
    420438        }
    421439        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' );
    423441            update_post_meta( $post->ID, 'sa_info_deleted', '0' );
    424442        }
    425443        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' );
    427445            update_post_meta( $post->ID, 'sa_info_duplicated', '0' );
    428446        }
    429447        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' );
    431449            update_post_meta( $post->ID, 'sa_info_moved', '0' );
    432450        }
    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' );
    435453        remove_meta_box( 'mymetabox_revslider_0', 'es_slider', 'normal' ); // remove revolution slider meta box.
    436454    }
     
    445463if (!function_exists('esrcpt_slide_added_content')) {
    446464    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>";
    448466    }
    449467}
     
    456474if (!function_exists('esrcpt_slide_deleted_content')) {
    457475    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>";
    459477    }
    460478}
     
    466484if (!function_exists('esrcpt_slide_duplicated_content')) {
    467485    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>";
    469487    }
    470488}
     
    477495if (!function_exists('esrcpt_slide_moved_content')) {
    478496    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>";
    480498    }
    481499}
     
    499517    echo '<div  class=""><span style="margin-right:20px">Slider Height:</span>';
    500518        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";
    502520
    503521    // NONCE TO PREVENT CSRF SECURITY ATTACKS.
     
    699717            $slide_data[ $count ]['link_target']      = 'sa_slide' . $i . '_link_target';
    700718            $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';
    702720            $slide_data[ $count ]['popup_type']       = 'sa_slide' . $i . '_popup_type';
    703721            $slide_data[ $count ]['popup_imageid']    = 'sa_slide' . $i . '_popup_imageid';
     
    778796        $tabs_num = $i + 1;
    779797        echo "<div id='slide_" . esc_html( $tabs_num ) . "_tabs' class='sa_slide_tabs'>\n";
    780    
     798
    781799
    782800        /**
     
    875893                echo "</div>\n";
    876894            } 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 ) . '; ';
    878896                echo 'background-repeat:' . esc_attr( $slide_image_repeat ) . '; background-color:' . esc_attr( $slide_image_color ) . '; ';
    879897                echo 'background-position:' . esc_attr( $slide_image_pos ) . ";'></div>\n";
     
    10011019        }
    10021020
    1003         /** customized Button for each slide **/ 
     1021        /** customized Button for each slide **/
    10041022
    10051023        //a display text of button on each slide
     
    10391057        echo "</div>\n";
    10401058
    1041    
     1059
    10421060
    10431061        echo "<div style='clear:both; float:none; width:100%; height:1px;'></div>\n";
     
    10451063        echo "</div>\n";
    10461064
    1047        
     1065
    10481066        echo "</div>\n";
    10491067
     
    10981116        $sanitize_title = sanitize_text_field( $post_title );
    10991117        $where          = array( 'ID' => $post->ID );
     1118        //phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
    11001119        $wpdb->update( $wpdb->posts, array( 'post_title' => $sanitize_title ), $where ); // db call ok; no-cache ok.
    11011120    }
     
    11091128            $total_slides = 1;
    11101129        }
    1111    
     1130
    11121131            $duplicate_slide = 0;
    1113    
    1114    
     1132
     1133
    11151134            $move_slide_up = 0;
    1116        
     1135
    11171136
    11181137        // UPDATE CONTENT FOR EACH SLIDE.
     
    12811300                    $slide_link_target_saved      = 'sa_slide' . $slides_saved . '_link_target';
    12821301                    $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';
    12841303                    $slide_popup_type_saved       = 'NONE';
    12851304                    $slide_popup_imageid_saved    = '';
     
    13571376                $slide1_link_target = sanitize_text_field( wp_unslash( $_POST[ 'sa_slide' . $slide1 . '_link_target' ] ) );
    13581377            }
    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
    13651389
    13661390            $slide1_popup_type       = '';
     
    14431467                $slide2_link_target = sanitize_text_field( wp_unslash( $_POST[ 'sa_slide' . $slide2 . '_link_target' ] ) );
    14441468            }
    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
    14511481            $slide2_popup_type       = '';
    14521482            $slide2_popup_imageid    = '';
     
    15371567        // UPDATE SLIDER SETTINGS.
    15381568        update_post_meta( $post->ID, 'sa_num_slides', abs( intval( $slides_saved ) ) );
    1539    
     1569
    15401570            update_post_meta( $post->ID, 'sa_disable_visual_editor', '0' );
    1541        
     1571
    15421572        if ( isset( $_POST['sa_info_added'] ) ) {
    15431573            update_post_meta( $post->ID, 'sa_info_added', abs( intval( $_POST['sa_info_added'] ) ) );
     
    15511581
    15521582            update_post_meta( $post->ID, 'sa_info_duplicated', 0 );
    1553        
    1554        
     1583
     1584
    15551585            update_post_meta( $post->ID, 'sa_move_slide_up', 0 );
    15561586
    15571587            update_post_meta( $post->ID, 'sa_info_moved', 0);
    1558    
    1559    
     1588
     1589
    15601590            update_post_meta( $post->ID, 'sa_slide_duration', '10' );
    1561        
    1562        
     1591
     1592
    15631593            update_post_meta( $post->ID, 'sa_slide_transition', '0.2' );
    1564        
     1594
    15651595
    15661596            update_post_meta( $post->ID, 'sa_slide_by', '1' );
    1567        
    1568        
     1597
     1598
    15691599            update_post_meta( $post->ID, 'sa_loop_slider', '1' );
    1570        
    1571    
     1600
     1601
    15721602            update_post_meta( $post->ID, 'sa_stop_hover', '1' );
    1573    
    1574    
     1603
     1604
    15751605            update_post_meta( $post->ID, 'sa_nav_arrows', '1' );
    1576    
     1606
    15771607            update_post_meta( $post->ID, 'sa_pagination', '1' );
    1578        
     1608
    15791609            update_post_meta( $post->ID, 'sa_random_order', '0' );
    1580        
    1581    
     1610
     1611
    15821612            update_post_meta( $post->ID, 'sa_reverse_order', '0' );
    1583        
     1613
    15841614
    15851615            update_post_meta( $post->ID, 'sa_shortcodes', '0' );
    1586    
    1587        
     1616
     1617
    15881618            update_post_meta( $post->ID, 'sa_mouse_drag', '1' );
    1589        
    1590    
     1619
     1620
    15911621            update_post_meta( $post->ID, 'sa_touch_drag', '1' );
    15921622
    1593    
     1623
    15941624            update_post_meta( $post->ID, 'sa_mousewheel', '0' );
    1595        
     1625
    15961626
    15971627            update_post_meta( $post->ID, 'sa_click_advance', '0' );
    1598    
     1628
    15991629            update_post_meta( $post->ID, 'sa_auto_height', '0' );
    1600        
    1601    
     1630
     1631
    16021632            update_post_meta( $post->ID, 'sa_vert_center', '0' );
    1603        
     1633
    16041634
    16051635        // UPDATE SLIDER ITEMS DISPLAYED.
     
    16081638
    16091639            update_post_meta( $post->ID, 'sa_items_width2', '768');
    1610        
     1640
    16111641            update_post_meta( $post->ID, 'sa_items_width3', '980' );
    1612        
    1613        
     1642
     1643
    16141644            update_post_meta( $post->ID, 'sa_items_width4', '1200');
    1615        
     1645
    16161646            update_post_meta( $post->ID, 'sa_items_width5', '1500' );
    1617        
    1618    
     1647
     1648
    16191649            update_post_meta( $post->ID, 'sa_items_width6', '1500' );
    1620        
    1621        
     1650
     1651
    16221652            update_post_meta( $post->ID, 'sa_transition', 'Slide');
    1623        
    1624    
     1653
     1654
    16251655            update_post_meta( $post->ID, 'sa_hero_slider', '0' );
    1626        
    1627    
     1656
     1657
    16281658            update_post_meta( $post->ID, 'sa_showcase_slider', '0' );
    1629        
    1630        
     1659
     1660
    16311661            update_post_meta( $post->ID, 'sa_showcase_width', '120' );
    1632        
     1662
    16331663
    16341664            update_post_meta( $post->ID, 'sa_showcase_tablet', '0' );
    1635        
    1636        
     1665
     1666
    16371667            update_post_meta( $post->ID, 'sa_showcase_width_tab', '130' );
    1638        
    1639    
     1668
     1669
    16401670            update_post_meta( $post->ID, 'sa_showcase_mobile', '0' );
    1641        
     1671
    16421672            update_post_meta( $post->ID, 'sa_showcase_width_mob', '140' );
    16431673
    16441674
    16451675        // UPDATE SLIDER STYLE.
    1646        
     1676
    16471677            $post_css_id = 'Slider_'.$post->ID;
    16481678            update_post_meta( $post->ID, 'sa_css_id', sanitize_text_field( $post_css_id ) );
    1649        
     1679
    16501680
    16511681            update_post_meta( $post->ID, 'sa_background_color', 'rgba(0,0,0,0)' );
    16521682
    16531683            update_post_meta( $post->ID, 'sa_border_width', '0' );
    1654    
     1684
    16551685            update_post_meta( $post->ID, 'sa_border_color', 'rgba(0,0,0,0)' );
    1656    
    1657        
     1686
     1687
    16581688            update_post_meta( $post->ID, 'sa_border_radius', '0' );
    1659    
     1689
    16601690            update_post_meta( $post->ID, 'sa_wrapper_padd_top', '0' );
    1661        
     1691
    16621692            update_post_meta( $post->ID, 'sa_wrapper_padd_right','0' );
    1663        
     1693
    16641694            update_post_meta( $post->ID, 'sa_wrapper_padd_bottom', '0' );
    1665        
     1695
    16661696            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
     1699update_post_meta( $post->ID, 'sa_slide_min_height_perc', $slider_height );
     1700
    16721701            update_post_meta( $post->ID, 'sa_slide_padding_tb', '5' );
    1673    
     1702
    16741703            update_post_meta( $post->ID, 'sa_slide_padding_lr', '5' );
    1675        
     1704
    16761705            update_post_meta( $post->ID, 'sa_slide_margin_lr','0' );
    1677    
    1678    
     1706
     1707
    16791708            update_post_meta( $post->ID, 'sa_slide_icons_location', 'Center Center' );
    1680    
    1681        
     1709
     1710
    16821711            update_post_meta( $post->ID, 'sa_slide_icons_color', 'white' );
    16831712
     1713
     1714
    16841715            update_post_meta( $post->ID, 'sa_autohide_arrows', '0' );
    1685        
     1716
    16861717
    16871718            update_post_meta( $post->ID, 'sa_dot_per_slide', '1' );
    1688    
    1689        
     1719
     1720
    16901721            update_post_meta( $post->ID, 'sa_slide_icons_visible', '1' );
    16911722
    16921723
    16931724            update_post_meta( $post->ID, 'sa_slide_icons_fullslide', '0' );
    1694        
     1725
    16951726
    16961727        // OTHER SETTINGS.
    16971728        $other_settings = '';
    1698    
     1729
    16991730            $other_settings .= '0';
    1700    
     1731
    17011732
    17021733            $other_settings .= '|0';
     
    17041735
    17051736            $other_settings .= '|0';
    1706    
     1737
    17071738            $other_settings .= '|0';
    17081739
     
    17111742        // disable preview setting (now removed & permanently disabled).
    17121743        $other_settings .= '|1';
    1713    
     1744
    17141745            $other_settings .= '|full';
    1715    
     1746
    17161747
    17171748            $other_settings .= '|0';
    1718        
     1749
    17191750        update_post_meta( $post->ID, 'sa_other_settings', $other_settings );
    17201751        // starting slide number.
     
    17721803    add_submenu_page(
    17731804        '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' ),
    17761807        'manage_options',
    17771808        'reorderslides',
     
    17901821
    17911822        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>';
    17931824
    17941825        if ( isset( $_SERVER['REQUEST_METHOD'] ) && ( 'POST' === $_SERVER['REQUEST_METHOD'] )
     
    18351866                }
    18361867
    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>";
    18381869        } else {
    18391870            if ( isset( $_POST['sar_del_slides'] ) && ( '' !== $_POST['sar_del_slides'] ) ) {
     
    18841915
    18851916                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>';
    18871918                } 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>';
    18891920                }
    18901921            }
Note: See TracChangeset for help on using the changeset viewer.