Plugin Directory

Changeset 2270086

Timestamp:
03/29/2020 09:28:49 AM (4 years ago)
Author:
Anfisa
Message:

tagging version 3.0

Location:
abwpwoo
Files:
2 edited
3 copied

Legend:

Unmodified
Added
Removed
  • abwpwoo/tags/3.0/readme.txt

    r2252066 r2270086  
    33Tags: ab-inspiration,woocommerce,wp courseware,lms,learning management system,online courses
    44Requires at least: 4.8
    5 Tested up to: 5.2.3
    6 Stable tag: 2.0
     5Tested up to: 5.
     6Stable tag: .0
    77License: GPLv3
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    33331. Активируйте плагин в разделе 'Плагины' в админке сайта
    3434
     35
     36
     37
     38
    3539== Вопросы ==
    3640
     
    5458== Changelog ==
    5559
     60
     61
     62
     63
     64
     65
    5666= 2.0 =
    5767* изменена запись после зачисления на курс
  • abwpwoo/tags/3.0/wwpcouseware-extra-settings.php

    r2252066 r2270086  
    22/**
    33 * Plugin Name: Addon for AB-Inspiration, WooCoocommerce and WP Courseware
    4  * Version:     2.0
     4 * Version:     .0
    55 * Plugin URI:  https://ab-inspiration.com
    66 * Description: The official extension AB-Inspiration for add integration for WP Courseware and WooCommmerce.
    77 * Author:      Anfisa Breus
    88 * Author URI:  https://anfisabreus.ru
     9
     10
    911 * License:     GPL v2 or later
    1012 */
     
    1214
    1315/***************Plugin Functions****************/
     16
     17
     18
     19
     20
     21
     22
     23
     24
     25
     26
     27
     28
     29
     30
     31
     32
     33
     34
     35
     36
    1437
    1538function ABIWPWOO_register_settings() {
     
    2043
    2144function abwpwoo_register_options_page() {
    22   add_submenu_page('wpcw', 'Доп настройки', 'Доп настройки', 'manage_options', 'abwpwoo', 'abwpwoo_options_page');
     45  add_submenu_page('wpcw', , 'manage_options', 'abwpwoo', 'abwpwoo_options_page');
    2346}
    2447add_action('admin_menu', 'abwpwoo_register_options_page',11);
     
    3053{
    3154?>
     55
     56
     57
    3258<div>
    3359  <?php screen_icon(); ?>
    34 <h2>Дополнительные настройки для плагина WP Courseware</h2>
     60<h2></h2>
    3561<form method="post" action="options.php">
    3662  <?php settings_fields( 'abwpwoo_options_group' ); ?>
     
    4066<table class="form-table"> 
    4167 <tr valign="top">
    42 <th scope="row">Исключить курсы из каталога:</th>
     68<th scope="row"></th>
    4369<td colspan="2">
    4470   
     
    6995
    7096<tr valign="top">
    71 <th scope="row">Курс + Товар:</th>
     97<th scope="row"></th>
    7298<td colspan="2">
    7399   
     
    117143
    118144<tr valign="top">
    119 <th scope="row">Курс + Странцицы:</th>
     145<th scope="row"></th>
    120146<td colspan="2">
    121147   
     
    145171<select name="ab_wpcourseware[id_courses_pages][<?php echo $item; ?>]" style="<?php if (in_array($itm->ID, $ab_wpcourseware["id_courses"])) { ?>display:none<?php } ?>">
    146172    <?php if (!in_array($itm->ID, $ab_wpcourseware["id_courses"])) { ?>
    147     <option value="">Оставить страницу курса</option> <?php } ?>
     173    <option value=""></option> <?php } ?>
    148174    <?php foreach($itemsp as $itemp => $it) { ?>
    149175    <?php if (!in_array($itm->ID, $ab_wpcourseware["id_courses"])) { ?>
     
    196222    echo '<div style=""><div style="float:left;margin-bottom:30px; "><img style="border:1px solid #eaeaea; border-radius:50%" src="' . $usergravatar . '" /></div><div style="float:left; font-size:24px; font-weight:bold;     margin-top: 20px;
    197223    margin-left: 20px;">'. $getusername .' '. $getuserlastname;
    198     echo '<br><span style="font-size:16px; font-weight:normal;">Это не вы?</span>  <span style="font-size:16px; font-weight:normal; text-decoration:underline"> <a href="'. wp_logout_url(home_url()) .'" title="Выход">Выйти</a></span></div></div> ';
     224    echo '<br><span style="font-size:16px; font-weight:normal;"></a></span></div></div> ';
    199225    echo '<div style="clear:both"></div>';
    200226}}
     
    208234add_filter( 'wpcw_course_enrollment_success_message', function( $message, $course_id, $user_id ) {
    209235    // Do something with the message. Replace it, append to it, etc...
    210     $message .= ' Вы успешно зачислены на курс. Выбранные вами курсы смотрите в ЛИЧНОМ КАБИНЕТЕ в разделе КУРСЫ';
     236    $message .= ;
    211237    return $message;
    212238}, 10, 3 );
     
    229255}
    230256
    231 function abwpwoo_unit_order()  { ?>
    232 <script>
    233 jQuery(document).ready(function($){
    234 
    235 setTimeout(function() {
    236     var unitTable = jQuery('.wpcw_fe_table');
    237     if (unitTable.length) {
    238         unitTable.each(function(el, index) {
    239             var units = $(this).find('.wpcw_fe_unit_title');
    240             units.each(function(index) {
    241                 $(this).text(index + 1 + ".");
    242             });
    243         });
    244     }
    245 }, 500);
    246 
    247       })
    248    
    249 </script>
    250 <script> $( ".wpcw_progress_percent" ).prepend( "Завершено на " ); </script>
    251 <script> $( ".wpcw_course-template-template-single-course .wpcw_widget_progress" ).find(".wpcw_fe_module").addClass("wpcw_fe_module_toggle_hide"); </script>
    252 
    253 
    254 <?php }
    255 add_action( 'wp_footer', 'abwpwoo_unit_order' );   
  • abwpwoo/trunk/readme.txt

    r2252066 r2270086  
    33Tags: ab-inspiration,woocommerce,wp courseware,lms,learning management system,online courses
    44Requires at least: 4.8
    5 Tested up to: 5.2.3
    6 Stable tag: 2.0
     5Tested up to: 5.
     6Stable tag: .0
    77License: GPLv3
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    33331. Активируйте плагин в разделе 'Плагины' в админке сайта
    3434
     35
     36
     37
     38
    3539== Вопросы ==
    3640
     
    5458== Changelog ==
    5559
     60
     61
     62
     63
     64
     65
    5666= 2.0 =
    5767* изменена запись после зачисления на курс
  • abwpwoo/trunk/wwpcouseware-extra-settings.php

    r2252066 r2270086  
    22/**
    33 * Plugin Name: Addon for AB-Inspiration, WooCoocommerce and WP Courseware
    4  * Version:     2.0
     4 * Version:     .0
    55 * Plugin URI:  https://ab-inspiration.com
    66 * Description: The official extension AB-Inspiration for add integration for WP Courseware and WooCommmerce.
    77 * Author:      Anfisa Breus
    88 * Author URI:  https://anfisabreus.ru
     9
     10
    911 * License:     GPL v2 or later
    1012 */
     
    1214
    1315/***************Plugin Functions****************/
     16
     17
     18
     19
     20
     21
     22
     23
     24
     25
     26
     27
     28
     29
     30
     31
     32
     33
     34
     35
     36
    1437
    1538function ABIWPWOO_register_settings() {
     
    2043
    2144function abwpwoo_register_options_page() {
    22   add_submenu_page('wpcw', 'Доп настройки', 'Доп настройки', 'manage_options', 'abwpwoo', 'abwpwoo_options_page');
     45  add_submenu_page('wpcw', , 'manage_options', 'abwpwoo', 'abwpwoo_options_page');
    2346}
    2447add_action('admin_menu', 'abwpwoo_register_options_page',11);
     
    3053{
    3154?>
     55
     56
     57
    3258<div>
    3359  <?php screen_icon(); ?>
    34 <h2>Дополнительные настройки для плаги��а WP Courseware</h2>
     60<h2></h2>
    3561<form method="post" action="options.php">
    3662  <?php settings_fields( 'abwpwoo_options_group' ); ?>
     
    4066<table class="form-table"> 
    4167 <tr valign="top">
    42 <th scope="row">Исключить курсы из каталога:</th>
     68<th scope="row"></th>
    4369<td colspan="2">
    4470   
     
    6995
    7096<tr valign="top">
    71 <th scope="row">Курс + Товар:</th>
     97<th scope="row"></th>
    7298<td colspan="2">
    7399   
     
    117143
    118144<tr valign="top">
    119 <th scope="row">Курс + Странцицы:</th>
     145<th scope="row"></th>
    120146<td colspan="2">
    121147   
     
    145171<select name="ab_wpcourseware[id_courses_pages][<?php echo $item; ?>]" style="<?php if (in_array($itm->ID, $ab_wpcourseware["id_courses"])) { ?>display:none<?php } ?>">
    146172    <?php if (!in_array($itm->ID, $ab_wpcourseware["id_courses"])) { ?>
    147     <option value="">Оставить страницу курса</option> <?php } ?>
     173    <option value=""></option> <?php } ?>
    148174    <?php foreach($itemsp as $itemp => $it) { ?>
    149175    <?php if (!in_array($itm->ID, $ab_wpcourseware["id_courses"])) { ?>
     
    196222    echo '<div style=""><div style="float:left;margin-bottom:30px; "><img style="border:1px solid #eaeaea; border-radius:50%" src="' . $usergravatar . '" /></div><div style="float:left; font-size:24px; font-weight:bold;     margin-top: 20px;
    197223    margin-left: 20px;">'. $getusername .' '. $getuserlastname;
    198     echo '<br><span style="font-size:16px; font-weight:normal;">Это не вы?</span>  <span style="font-size:16px; font-weight:normal; text-decoration:underline"> <a href="'. wp_logout_url(home_url()) .'" title="Выход">Выйти</a></span></div></div> ';
     224    echo '<br><span style="font-size:16px; font-weight:normal;"></a></span></div></div> ';
    199225    echo '<div style="clear:both"></div>';
    200226}}
     
    208234add_filter( 'wpcw_course_enrollment_success_message', function( $message, $course_id, $user_id ) {
    209235    // Do something with the message. Replace it, append to it, etc...
    210     $message .= ' Вы успешно зачислены на курс. Выбранные вами курсы смотрите в ЛИЧНОМ КАБИНЕТЕ в разделе КУРСЫ';
     236    $message .= ;
    211237    return $message;
    212238}, 10, 3 );
     
    229255}
    230256
    231 function abwpwoo_unit_order()  { ?>
    232 <script>
    233 jQuery(document).ready(function($){
    234 
    235 setTimeout(function() {
    236     var unitTable = jQuery('.wpcw_fe_table');
    237     if (unitTable.length) {
    238         unitTable.each(function(el, index) {
    239             var units = $(this).find('.wpcw_fe_unit_title');
    240             units.each(function(index) {
    241                 $(this).text(index + 1 + ".");
    242             });
    243         });
    244     }
    245 }, 500);
    246 
    247       })
    248    
    249 </script>
    250 <script> $( ".wpcw_progress_percent" ).prepend( "Завершено на " ); </script>
    251 <script> $( ".wpcw_course-template-template-single-course .wpcw_widget_progress" ).find(".wpcw_fe_module").addClass("wpcw_fe_module_toggle_hide"); </script>
    252 
    253 
    254 <?php }
    255 add_action( 'wp_footer', 'abwpwoo_unit_order' );   
Note: See TracChangeset for help on using the changeset viewer.