diff --git a/.jscsrc b/.jscsrc
deleted file mode 100644
index 2a2cf34504..0000000000
--- a/.jscsrc
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch", "case", "default"],
- // "requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
- "requireParenthesesAroundIIFE": true,
- // "requireSpacesInFunctionExpression": { "beforeOpeningCurlyBrace": true },
- // "disallowSpacesInFunctionExpression": { "beforeOpeningRoundBrace": true },
- "requireMultipleVarDecl": true,
- "disallowEmptyBlocks": true,
- // "disallowSpacesInsideObjectBrackets": true,
- // "disallowSpacesInsideArrayBrackets": true,
- // "disallowSpacesInsideParentheses": true,
- "disallowQuotedKeysInObjects": "allButReserved",
- "requireCommaBeforeLineBreak": true,
- "requireOperatorBeforeLineBreak": ["?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
- // "disallowLeftStickedOperators": ["?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
- // "requireRightStickedOperators": ["!"],
- // "disallowRightStickedOperators": ["?", "+", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
- //"requireLeftStickedOperators": [","],
- "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
- "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
- "requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
- "requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
- "disallowKeywords": ["with"],
- "disallowMultipleLineBreaks": true,
- "validateLineBreaks": "LF",
- "validateQuoteMarks": "'",
- // "disallowMixedSpacesAndTabs": true,
- // "disallowTrailingWhitespace": false,
- "disallowKeywordsOnNewLine": ["else"],
- "requireLineFeedAtFileEnd": true,
- "maximumLineLength": 120,
- // "requireCapitalizedConstructors": true,
- "requireDotNotation": true,
- "excludeFiles": ["node_modules/**"]
-}
\ No newline at end of file
diff --git a/.jshintrc b/.jshintrc
deleted file mode 100644
index 13b2057b4d..0000000000
--- a/.jshintrc
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- // JSHint Default Configuration File (as on JSHint website)
- // See http://jshint.com/docs/ for more details
-
- "maxerr" : 50, // {int} Maximum error before stopping
-
- // Enforcing
- "bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
- "camelcase" : false, // true: Identifiers must be in camelCase
- "curly" : true, // true: Require {} for every new block or scope
- "eqeqeq" : true, // true: Require triple equals (===) for comparison
- "forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty()
- "freeze" : true, // true: prohibits overwriting prototypes of native objects such as Array, Date etc.
- "immed" : false, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
- "indent" : 4, // {int} Number of spaces to use for indentation
- "latedef" : false, // true: Require variables/functions to be defined before being used
- "newcap" : false, // true: Require capitalization of all constructor functions e.g. `new F()`
- "noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee`
- "noempty" : true, // true: Prohibit use of empty blocks
- "nonbsp" : false, // true: Prohibit "non-breaking whitespace" characters.
- "nonew" : false, // true: Prohibit use of constructors for side-effects (without assignment)
- "plusplus" : false, // true: Prohibit use of `++` & `--`
- "quotmark" : false, // Quotation mark consistency:
- // false : do nothing (default)
- // true : ensure whatever is used is consistent
- // "single" : require single quotes
- // "double" : require double quotes
- "undef" : true, // true: Require all non-global variables to be declared (prevents global leaks)
- "unused" : true, // true: Require all defined variables be used
- "strict" : true, // true: Requires all functions run in ES5 Strict Mode
- "maxparams" : false, // {int} Max number of formal params allowed per function
- "maxdepth" : false, // {int} Max depth of nested blocks (within functions)
- "maxstatements" : false, // {int} Max number statements per function
- "maxcomplexity" : false, // {int} Max cyclomatic complexity per function
- "maxlen" : false, // {int} Max number of characters per line
-
- // Relaxing
- "asi" : false, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
- "boss" : false, // true: Tolerate assignments where comparisons would be expected
- "debug" : false, // true: Allow debugger statements e.g. browser breakpoints.
- "eqnull" : false, // true: Tolerate use of `== null`
- "es5" : false, // true: Allow ES5 syntax (ex: getters and setters)
- "esnext" : false, // true: Allow ES.next (ES6) syntax (ex: `const`)
- "moz" : false, // true: Allow Mozilla specific syntax (extends and overrides esnext features)
- // (ex: `for each`, multiple try/catch, function expression…)
- "evil" : false, // true: Tolerate use of `eval` and `new Function()`
- "expr" : false, // true: Tolerate `ExpressionStatement` as Programs
- "funcscope" : false, // true: Tolerate defining variables inside control statements
- "globalstrict" : false, // true: Allow global "use strict" (also enables 'strict')
- "iterator" : false, // true: Tolerate using the `__iterator__` property
- "lastsemic" : false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block
- "laxbreak" : false, // true: Tolerate possibly unsafe line breakings
- "laxcomma" : false, // true: Tolerate comma-first style coding
- "loopfunc" : false, // true: Tolerate functions being defined in loops
- "multistr" : false, // true: Tolerate multi-line strings
- "noyield" : false, // true: Tolerate generator functions with no yield statement in them.
- "notypeof" : false, // true: Tolerate invalid typeof operator values
- "proto" : false, // true: Tolerate using the `__proto__` property
- "scripturl" : false, // true: Tolerate script-targeted URLs
- "shadow" : false, // true: Allows re-define variables later in code e.g. `var x=1; x=2;`
- "sub" : false, // true: Tolerate using `[]` notation when it can still be expressed in dot notation
- "supernew" : false, // true: Tolerate `new function () { ... };` and `new Object;`
- "validthis" : false, // true: Tolerate using this in a non-constructor function
-
- // Environments
- "browser" : true, // Web Browser (window, document, etc)
- "browserify" : false, // Browserify (node.js code in the browser)
- "couch" : false, // CouchDB
- "devel" : true, // Development/debugging (alert, confirm, etc)
- "dojo" : false, // Dojo Toolkit
- "jasmine" : false, // Jasmine
- "jquery" : false, // jQuery
- "mocha" : true, // Mocha
- "mootools" : false, // MooTools
- "node" : false, // Node.js
- "nonstandard" : false, // Widely adopted globals (escape, unescape, etc)
- "prototypejs" : false, // Prototype and Scriptaculous
- "qunit" : false, // QUnit
- "rhino" : false, // Rhino
- "shelljs" : false, // ShellJS
- "worker" : false, // Web Workers
- "wsh" : false, // Windows Scripting Host
- "yui" : false, // Yahoo User Interface
-
- // Custom Globals
- "globals" : {} // additional predefined global variables
-}
\ No newline at end of file
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 64be0af086..0000000000
--- a/.travis.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-language: php
-
-php:
- - 5.3
- - 5.4
-
-env:
- - WP_VERSION=latest WP_MULTISITE=0
- - WP_VERSION=latest WP_MULTISITE=1
- - WP_VERSION=3.8 WP_MULTISITE=0
- - WP_VERSION=3.8 WP_MULTISITE=1
-
-before_script:
- - bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
-
-script: phpunit
diff --git a/README.md b/README.md
deleted file mode 100644
index 046828caa8..0000000000
--- a/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-LifterLMS
-==========
-
-LifterLMS, the #1 WordPress LMS solution, makes it easy to create, sell, and protect engaging online courses.
-
-### [Changelog](./CHANGELOG.md)
-
-### [Documentation](https://lifterlms.readme.io)
-
-### Contributing
-
-+ Fork the repository on GitHub (make sure to use the develop branch, not master).
-+ Make the changes to your forked repository.
-+ Ensure you stick to the WordPress Coding Standards and have properly documented any new functions, actions and filters following the documentation standards (we're working on automated testing, code sniffing, etc... our codebase is fragmented and doesn't fully adhere to our own standards but we're working on it. Don't create more work for us and don't make us reject you for lack of inline documentation!)
-+ When committing, reference your issue (if present) and include a note about the fix.
-+ Push the changes to your fork and submit a pull request to the 'develop' branch of the LifterLMS repo.
-+ At this point you're waiting on us to merge your pull request. We'll review all pull requests, and make suggestions and changes if necessary. We're newly open source and supporting users and customers and our own internal pull requests and releases will take priority over pull requests from the community. Please be patient!
-
-
diff --git a/_private/js/app/llms-ajax.js b/_private/js/app/llms-ajax.js
deleted file mode 100644
index 7fcdd0b227..0000000000
--- a/_private/js/app/llms-ajax.js
+++ /dev/null
@@ -1,116 +0,0 @@
-/* global LLMS, $, wp_ajax_data */
-/* jshint strict: false */
-
-/**
- * Main Ajax class
- * Handles Primary Ajax connection
- * @type {Object}
- */
-LLMS.Ajax = {
-
- /**
- * url
- * @type {String}
- */
- url: window.ajaxurl || window.llms.ajaxurl,
-
- /**
- * type
- * @type {[type]}
- */
- type: 'post',
-
- /**
- * data
- * @type {[type]}
- */
- data: [],
-
- /**
- * cache
- * @type {[type]}
- */
- cache: false,
-
- /**
- * dataType
- * defaulted to json
- * @type {String}
- */
- dataType: 'json',
-
- /**
- * async
- * default to false
- * @type {Boolean}
- */
- async: true,
-
- response:[],
-
- /**
- * initilize Ajax methods
- * loads class methods
- */
- init: function(obj) {
-
- //if obj is not of type object or null return false;
- if( obj === null || typeof obj !== 'object' ) {
- return false;
- }
-
- //set object defaults if values are not supplied
- obj.url = this.url;
- obj.type = 'type' in obj ? obj.type : this.type;
- obj.data = 'data' in obj ? obj.data : this.data;
- obj.cache = 'cache' in obj ? obj.cache : this.cache;
- obj.dataType = 'dataType' in obj ? obj.dataType : this.dataType;
- obj.async = 'async' in obj ? obj.async : this.async;
-
- //add nonce to data object
- obj.data._ajax_nonce = wp_ajax_data.nonce;
-
- //add post id to data object
- var $R = LLMS.Rest,
- query_vars = $R.get_query_vars();
- obj.data.post_id = 'post' in query_vars ? query_vars.post : null;
-
- return obj;
- },
-
- /**
- * Call
- * Called by external classes
- * Sets up jQuery Ajax object
- * @param {[object]} [object of ajax settings]
- * @return {[mixed]} [false if not object or this]
- */
- call: function(obj) {
-
- //get default variables if not included in call
- var settings = this.init(obj);
-
- //if init return a response of false
- if (!settings) {
- return false;
- } else {
- this.request(settings);
- }
-
- return this;
-
- },
-
- /**
- * Calls jQuery Ajax on settings object
- * @return {[object]} [this]
- */
- request: function(settings) {
-
- $.ajax(settings);
-
- return this;
-
- }
-
-};
diff --git a/_private/js/app/llms-metabox-course-outline.js b/_private/js/app/llms-metabox-course-outline.js
deleted file mode 100644
index 4faf24c438..0000000000
--- a/_private/js/app/llms-metabox-course-outline.js
+++ /dev/null
@@ -1,814 +0,0 @@
-/* global LLMS, $ */
-/* jshint strict: false */
-
-/**
- * Front End Quiz Class
- * Applies only to post type quiz
- * @type {Object}
- */
-LLMS.MB_Course_Outline = {
-
- /**
- * init
- * loads class methods
- */
- init: function() {
-
- if ($('#llms_post_edit_type').length ) {
- if ($('#llms_post_edit_type').val() === 'course') {
- this.bind();
- }
- }
-
- },
- alreadySubmitted: false,
- /**
- * Bind Method
- * Handles dom binding on load
- */
- bind: function() {
- var _this = this;
-
- $(document).ready(function() {
- //add section row js functionality
- _this.addSectionRowFunctionality();
-
- //add lesson row js functionality
- _this.addLessonRowFunctionality();
- });
-
- $('.llms-modal-cancel').click(function (e) {
- e.preventDefault();
- $(window).trigger('build');
- });
-
- $(document).ready(function () {
- $('.llms-chosen-select').chosen({width: '100%'});
- });
-
- //hack to resize excerpt and content editor size.
- //There is a WP but where passing the css_options to wp_editor
- //does not work.
- $('.tab-link').on('click', function () {
- $('#content_ifr').css('height', '300px');
- $('#excerpt_ifr').css('height', '300px');
- });
-
- //show / hide prereq lesson select based on setting
- if ($('#_has_prerequisite').attr('checked')) {
- $('.llms-prereq-top').addClass('top');
- $('.llms-prereq-bottom').show();
-
- } else {
- $('.llms-prereq-bottom').hide();
- }
- $('#_has_prerequisite').change(function () {
- if ($('#_has_prerequisite').attr('checked')) {
- $('.llms-prereq-top').addClass('top');
- $('.llms-prereq-bottom').show();
-
- } else {
- $('.llms-prereq-top').removeClass('top');
- $('.llms-prereq-bottom').hide();
- }
- });
-
- this.toggle_custom_single_price_field();
-
- //generic modal call
- $('a.llms-modal').click(function () {
- $('#' + $(this).attr('data-modal_id')).topModal({
- title: $(this).attr('data-modal_title'),
- closed: function () {
- _this.alreadySubmitted = false;
- }
- });
- });
-
- //add new lesson modal
- $('a.llms-modal-new-lesson-link').click(function () {
- $('#' + $(this).attr('data-modal_id')).topModal({
- title: $(this).attr('data-modal_title'),
- open: function () {
- _this.getSections();
- $('#llms_create_lesson').find('input[value="Create Lesson"]').removeProp('disabled');
- },
- closed: function () {
- _this.alreadySubmitted = false;
- }
- });
- });
-
- //add existing lesson modal
- $('a.llms-modal-existing-lesson-link').click(function () {
- $('#' + $(this).attr('data-modal_id')).topModal({
- title: $(this).attr('data-modal_title'),
- open: function () {
- _this.getSections();
- _this.getLessons();
- },
- closed: function () {
- _this.alreadySubmitted = false;
- }
- });
- });
-
- this.setup_course();
-
- $(window).click(function (e) {
- if (e.target.id !== 'llms-outline-add' && $('#llms-outline-add').hasClass('clicked')) {
- $('#llms-outline-menu').css('display', 'none');
- reset();
- }
- });
-
- function reset() {
- $('#llms-outline-add').removeClass('clicked');
- $('#llms-outline-add').addClass('bt');
- $('#llms-outline-menu').removeClass('fade-in');
- $('#triangle').show();
- }
-
- $(window).scroll(function () {
- if ($('#llms-outline-add').hasClass('clicked')) {
- $('#triangle').hide();
- var popover = $('#llms-outline-menu'),
- top = -($('#llms-outline-add').offset().top) - 81 +
- $(window).scrollTop() + ($(window).height() / 2);
- popover.css('top', top);
- }
- });
-
- $('#llms-outline-add').click(function (e) {
- e.preventDefault();
- var popover = $('#llms-outline-menu');
- if ($(this).hasClass('bt')) {
- if ($(this).offset().top - $(window).scrollTop() < 200) {
- popover.css('top', '43px');
- if ($(window).width() < 851) {
- popover.find('#triangle').css('left', '164px');
- popover.css('top', '57px');
- popover.css('left', '-138px');
- popover.css('bottom', '15px');
- }
- } else {
- popover.css('top', '');
- if ($(window).width() < 851) {
- popover.css('top', '-54px');
- var left = $(window).width() < 400 ? -Math.abs($(window).width() / 2) : -242;
- left += 'px';
- popover.css('left', left);
- popover.css('bottom', '15px');
- popover.find('#triangle').css('left', '227px');
- }
- }
- $(this).removeClass('bt');
- $(this).addClass('clicked');
- popover.addClass('fade-in');
- popover.css('display', 'block');
- } else {
- $(this).removeClass('clicked');
- $(this).addClass('bt');
- popover.removeClass('fade-in');
- popover.css('display', 'none');
- popover.find('#triangle').show();
- }
- });
-
- $('#tooltip_menu a').click(function (e) {
- var popover = $('#llms-outline-menu');
- popover.removeClass('fade-in');
- popover.css('display', 'none');
- e.preventDefault();
- });
-
- $('a.tooltip').click(function (e) {
- e.preventDefault();
- });
-
- //section form submit
- $('#llms_create_section').on('submit', function (e) {
- e.preventDefault();
- var values = {};
- $.each($(this).serializeArray(), function (i, field) {
- values[field.name] = field.value;
- });
- if (_this.alreadySubmitted === false) {
- _this.alreadySubmitted = true;
- _this.createSection(values);
- }
- });
-
- //new lesson form submit
- $('#llms_create_lesson').on('submit', function (e) {
- e.preventDefault();
- var values = {};
- $.each($(this).serializeArray(), function (i, field) {
- values[field.name] = field.value;
- });
- if (_this.alreadySubmitted === false) {
- _this.alreadySubmitted = true;
- _this.createLesson(values);
- }
-
- });
-
- //add existing lesson form submit
- $('#llms_add_existing_lesson').on('submit', function (e) {
- e.preventDefault();
-
- var values = {};
- $.each($(this).serializeArray(), function (i, field) {
- values[field.name] = field.value;
- });
- if (_this.alreadySubmitted === false) {
- _this.alreadySubmitted = true;
- _this.addExistingLesson(values);
- }
-
- });
-
- //update lesson title
- $('#llms_edit_lesson').on('submit', function (e) {
- e.preventDefault();
-
- var values = {};
- $.each($(this).serializeArray(), function (i, field) {
- values[field.name] = field.value;
- });
-
- _this.updateLesson(values);
-
- });
-
- //update section title
- $('#llms_edit_section').on('submit', function (e) {
- e.preventDefault();
-
- var values = {};
- $.each($(this).serializeArray(), function (i, field) {
- values[field.name] = field.value;
- });
-
- _this.updateSection(values);
-
- });
-
- //update lesson title
- $('#llms_delete_section').on('submit', function (e) {
- e.preventDefault();
-
- var values = {};
- $.each($(this).serializeArray(), function (i, field) {
- values[field.name] = field.value;
- });
-
- _this.deleteSection(values);
- });
- },
-
- toggle_custom_single_price_field: function()
- {
- //show / hide prereq lesson select based on setting
- if ($('#_is_custom_single_price').attr('checked')) {
- $('.llms-custom-single-price-top').removeClass('bottom');
- $('.llms-custom-single-price-top').addClass('top');
- $('.llms-custom-single-price-bottom').show();
-
- } else {
- $('.llms-custom-single-price-bottom').hide();
- }
- $('#_is_custom_single_price').change(function () {
- if ($('#_is_custom_single_price').attr('checked')) {
- $('.llms-custom-single-price-top').removeClass('bottom');
- $('.llms-custom-single-price-top').addClass('top');
- $('.llms-custom-single-price-bottom').show();
-
- } else {
- $('.llms-custom-single-price-top').removeClass('top');
- $('.llms-custom-single-price-top').addClass('bottom');
- $('.llms-custom-single-price-bottom').hide();
- }
- });
- },
- resortSections: function() {
-
- var section_tree = {};
-
- $( '.llms-section' ).each( function(i) {
- i++;
-
- //update the sections to display the new order
- $(this).find('[name="llms_section_order[]"]').val(i);
- $(this).find('.llms-section-order').html(i);
-
- var id = $(this).find('[name="llms_section_id[]"]').val();
-
- //add section id and order to section tree object
- section_tree[id] = i;
- //update the new order in the database
-
- });
-
- LLMS.MB_Course_Outline.updateSectionOrder( section_tree );
-
- },
-
- updateSectionOrder: function( section_tree ) {
- console.log(section_tree);
- LLMS.Ajax.call({
- data: {
- action: 'update_section_order',
- sections: section_tree
- },
- beforeSend: function() {
- },
- success: function(r) {
- console.log(r);
- }
- });
- },
-
- updateLessonOrder: function( lesson_tree ) {
- console.log(lesson_tree);
- LLMS.Ajax.call({
- data: {
- action: 'update_lesson_order',
- lessons: lesson_tree
- },
- beforeSend: function() {
- },
- success: function(r) {
- console.log(r);
-
- }
- });
- },
-
- resortLessons: function() {
-
- var lesson_tree = {};
-
- $( '.llms-lesson-tree' ).each( function() {
-
- //loop through all lessons and set order
- $(this).find( '.llms-lesson').each( function(i) {
- i++;
-
- //set parent section
- var parentSection = $(this).parent().parent().find('[name="llms_section_id[]"]').val();
- // alert(parentSection);
- $(this).find('[name="llms_lesson_parent_section[]"]').val(parentSection);
-
- //set the new order
- $(this).find('[name="llms_lesson_order[]"]').val(i);
- $(this).find('.llms-lesson-order').html(i);
- console.log(parentSection);
-
- //save parent section and order to object
- var id = $(this).find('[name="llms_lesson_id[]"]').val();
- lesson_tree[id] = {
- parent_section : parentSection,
- order : i
- };
-
- });
- });
-
- LLMS.MB_Course_Outline.updateLessonOrder( lesson_tree );
-
- },
-
- createSection: function( values ) {
- LLMS.Ajax.call({
- data: {
- action: 'create_section',
- title: values.llms_section_name
-
- },
- beforeSend: function() {
- },
- success: function(r) {
- console.log(r);
-
- if ( r.success === true ) {
-
- $('#llms_course_outline_sort').append(r.data);
- $(window).trigger('build');
- LLMS.MB_Course_Outline.addSectionRowFunctionality();
-
- //clear form
- $( '#llms_create_section' ).each(function(){
- this.reset();
- });
- }
- }
- });
- },
-
- addSectionRowFunctionality: function() {
-
- //lesson sortable functionality
- $( '.llms-lesson-tree' ).sortable({
- connectWith: '.llms-lesson-tree',
- axis : 'y',
- placeholder : 'placeholder',
- cursor : 'move',
- forcePlaceholderSize:true,
- stop: function() {
-
- LLMS.MB_Course_Outline.resortLessons();
- }
-
- }).disableSelection();
-
- $( '#llms_course_outline_sort' ).sortable({
- connectWith: '.sortablewrapper',
- axis : 'y',
- placeholder : 'placeholder',
- cursor : 'move',
- forcePlaceholderSize:true,
- stop: function() {
- LLMS.MB_Course_Outline.resortSections();
- }
- }).disableSelection();
-
- //edit section modal
- $('a.llms-edit-section-link').click(function(){
- var _that = $(this);
- $('#' + $(this).attr('data-modal_id') ).topModal( {
- title: $(this).attr('data-modal_title'),
- open: function() {
- var section_id = _that.parent().parent().find('[name="llms_section_id[]"]').val();
- LLMS.MB_Course_Outline.getSection(section_id);
- }
- });
- });
-
- //delete section modal
- $('a.llms-delete-section-link').click(function(){
- var _that = $(this);
- $('#' + $(this).attr('data-modal_id') ).topModal( {
- title: $(this).attr('data-modal_title'),
- open: function() {
-
- var section_id = _that.parent().parent().find('[name="llms_section_id[]"]').val();
- $('#llms-section-delete-id').val(section_id);
- }
- });
- });
- },
-
- addLessonRowFunctionality: function() {
-
- //edit lesson modal
- $('a.llms-edit-lesson-link').click(function(){
- var _that = $(this);
- $('#' + $(this).attr('data-modal_id') ).topModal( {
- title: $(this).attr('data-modal_title'),
- open: function() {
- var lesson_id = _that.parent().parent().parent().find('[name="llms_lesson_id[]"]').val();
- LLMS.MB_Course_Outline.getLesson(lesson_id);
- }
- });
- });
-
- //update lesson title
- $( '.llms-remove-lesson-link' ).on( 'click', function(e) {
- e.preventDefault();
-
- var lesson_id = $(this).parent().parent().parent().find('[name="llms_lesson_id[]"]').val();
-
- LLMS.MB_Course_Outline.removeLesson( lesson_id );
- });
- },
-
- createLesson: function( values ) {
- LLMS.Ajax.call({
- data: {
- action: 'create_lesson',
- title: values.llms_lesson_name,
- excerpt: values.llms_lesson_excerpt,
- section_id: values.llms_section
- },
- beforeSend: function() {
- },
- success: function(r) {
- console.log(r);
-
- if ( r.success === true ) {
-
- //find the correct section and attach lesson
- $( '.llms-section' ).each( function() {
-
- var input_value = $(this).find('[name="llms_section_id[]"]').val();
- console.log(input_value);
- if ( input_value === values.llms_section ) {
- console.log('found one');
- console.log($(this));
- console.log($(this).find('.llms_lesson_tree'));
- $(this).find( '#llms_section_tree_' + values.llms_section ).append(r.data);
- }
-
- });
-
- //close modal window
- $(window).trigger('build');
- LLMS.MB_Course_Outline.addLessonRowFunctionality();
-
- //clear form
- $( '#llms_create_lesson' ).each(function(){
- this.reset();
- });
- }
- },
- });
- },
-
- addExistingLesson: function( values ) {
-
- LLMS.Ajax.call({
- data: {
- action: 'add_lesson_to_course',
- lesson_id: values.llms_lesson,
- section_id: values.llms_section
- },
- beforeSend: function() {
- },
- success: function(r) {
-
- if ( r.success === true ) {
-
- $( '.llms-section' ).each( function() {
-
- var input_value = $(this).find('[name="llms_section_id[]"]').val();
- console.log(input_value);
- if ( input_value === values.llms_section ) {
- $(this).find( '#llms_section_tree_' + values.llms_section ).append(r.data);
- }
-
- });
-
- //close modal window
- $(window).trigger('build');
- LLMS.MB_Course_Outline.addLessonRowFunctionality();
-
- $( '#llms_add_existing_lesson' ).each(function(){
- this.reset();
- });
- }
- }
- });
- },
-
- getSections: function() {
-
- LLMS.Ajax.call({
- data: {
- action: 'get_course_sections',
- },
- success: function(r) {
-
- if ( r.success === true ) {
-
- $('#llms-section-select').empty();
-
- $.each(r.data, function(key, value) {
- //append a new option for each result
- var newOption = $('');
- $('#llms-section-select').append(newOption);
- });
-
- // refresh option list
- $('#llms-section-select').trigger('chosen:updated');
- }
- }
- });
- },
-
- getSection: function( section_id ) {
- console.log(section_id);
- LLMS.Ajax.call({
- data: {
- action: 'get_course_section',
- section_id: section_id
- },
- success: function(r) {
-
- if ( r.success === true ) {
-
- $('#llms-section-edit-name').val(r.data.post.post_title);
- $('#llms-section-edit-id').val(r.data.id);
- }
- }
- });
- },
-
- getLesson: function( lesson_id ) {
-console.log(lesson_id);
- LLMS.Ajax.call({
- data: {
- action: 'get_course_lesson',
- lesson_id: lesson_id
- },
- success: function(r) {
-
- if ( r.success === true ) {
-
- $('#llms-lesson-edit-name').val(r.data.post.post_title);
- $('#llms-lesson-edit-excerpt').val(r.data.post.post_excerpt);
- $('#llms-lesson-edit-id').val(r.data.id);
- }
- }
- });
- },
-
- updateSection: function( values ) {
-
- LLMS.Ajax.call({
- data: {
- action: 'update_course_section',
- section_id: values.llms_section_edit_id,
- title: values.llms_section_edit_name
- },
- success: function(r) {
-
- if ( r.success === true ) {
-
- //find and update section title in tree
- //find the correct section and attach lesson
- $( '.llms-section' ).each( function() {
-
- var input_value = $(this).find('[name="llms_section_id[]"]').val();
- console.log(input_value);
- if ( input_value === values.llms_section_edit_id ) {
- console.log('found one');
- console.log($(this));
- console.log($(this).find('.llms-section-title'));
- $(this).find( '.llms-section-title' ).html(r.data.title);
- }
-
- });
-
- $(window).trigger('build');
-
- //clear form
- $( '#llms_edit_section' ).each(function(){
- this.reset();
- });
- }
- }
- });
- },
-
- updateLesson: function( values ) {
-
- LLMS.Ajax.call({
- data: {
- action: 'update_course_lesson',
- lesson_id: values.llms_lesson_edit_id,
- title: values.llms_lesson_edit_name,
- excerpt: values.llms_lesson_edit_excerpt
- },
- success: function(r) {
-
- if ( r.success === true ) {
-
- //find the correct lesson and update the title and description
- $( '.llms-lesson' ).each( function() {
-
- var input_value = $(this).find('[name="llms_lesson_id[]"]').val();
- console.log(input_value);
- if ( input_value === values.llms_lesson_edit_id ) {
- $(this).find( '.llms-lesson-title' ).html(r.data.title.title);
- $(this).find( '.llms-lesson-excerpt' ).html(r.data.excerpt.post_excerpt);
- }
-
- });
-
- $(window).trigger('build');
-
- $( '#llms_edit_lesson' ).each(function(){
- this.reset();
- });
- }
- }
- });
- },
-
- removeLesson: function( lesson_id ) {
-
- LLMS.Ajax.call({
- data: {
- action: 'remove_course_lesson',
- lesson_id: lesson_id,
- },
- success: function(r) {
-
- if ( r.success === true ) {
-
- //find the correct lesson and remove it
- $( '.llms-lesson' ).each( function() {
-
- var input_value = $(this).find('[name="llms_lesson_id[]"]').val();
- console.log(input_value);
- if ( input_value === lesson_id ) {
- $(this).remove();
- LLMS.MB_Course_Outline.resortLessons();
- }
-
- });
- }
- }
- });
- },
-
- deleteSection: function( values ) {
-
- LLMS.Ajax.call({
- data: {
- action: 'delete_course_section',
- section_id: values.llms_section_delete_id,
- },
- success: function(r) {
-
- if ( r.success === true ) {
-
- //find the correct lesson and remove it
- $( '.llms-section' ).each( function() {
-
- var input_value = $(this).find('[name="llms_section_id[]"]').val();
- console.log(input_value);
- if ( input_value === values.llms_section_delete_id ) {
- $(this).remove();
- LLMS.MB_Course_Outline.resortSections();
- }
-
- });
-
- $(window).trigger('build');
- }
- }
- });
- },
-
- getLessons: function() {
-
- LLMS.Ajax.call({
- data: {
- action: 'get_lesson_options_for_select',
- },
- success: function(r) {
-
- if ( r.success === true ) {
- $('#llms-lesson-select').empty();
-
- $.each(r.data, function(key, value) {
- //append a new option for each result
- var newOption = $('');
- $('#llms-lesson-select').append(newOption);
-
- });
-
- // refresh option list
- $('#llms-lesson-select').trigger('chosen:updated');
- }
- }
- });
- },
-
- /**
- * Initial Course setup
- * displays modal window
- * User enters course name
- * Submit adds title to course and saves course as draft.
- * @return {[type]} [description]
- */
- setup_course: function() {
-
- //only run this function on new posts of type course
- var $R = LLMS.Rest,
- new_post = ['post-new.php'],
- post_type = 'course',
- query_vars = $R.get_query_vars();
-
- if ( $R.is_path(new_post) && query_vars.post_type === post_type ) {
- $(document).ready(function() {
- $('#pop1').topModal( {
- title: 'Create New Course'
- });
- });
-
- //on submit set course title and save post as draft
- $( '#llms-create-course-submit').click(function(e) {
-
- $('#title').val( $('#llms-course-name').val() );
- $('#save-post').click();
- ////save for later when you want to close a modal
- // $('#TB_window').fadeOut();
- // self.parent.tb_remove();
- e.preventDefault();
- });
- }
- }
-};
diff --git a/_private/js/app/llms-quiz.js b/_private/js/app/llms-quiz.js
deleted file mode 100644
index 2416ddf5d8..0000000000
--- a/_private/js/app/llms-quiz.js
+++ /dev/null
@@ -1,294 +0,0 @@
-/* global LLMS, Ajax, $ */
-/* jshint strict: false */
-
-/**
- * Front End Quiz Class
- * Applies only to post type quiz
- * @type {Object}
- */
-LLMS.Quiz = {
-
- /**
- * init
- * loads class methods
- */
- init: function() {
-
- var $R = LLMS.Rest,
- post_type = ['llms_quiz'];
-
- if ( $R.is_path(post_type) ) {
- this.bind();
- }
-
- },
-
- /**
- * Bind Method
- * Handles dom binding on load
- * @return {[type]} [description]
- */
- bind: function() {
- var that = this;
-
- //hides the quiz timer when page loads
- $('#llms-quiz-timer').hide();
-
- // calls start quiz on "Start Quiz" button click
- $('#llms_start_quiz').click(function() {
- that.start_quiz();
- return false;
- });
-
- $('.view-summary').click(function() {
- var accordion = $('.accordion');
- if(accordion.hasClass('hidden')) {
- accordion.fadeIn(300);
- accordion.removeClass('hidden');
- $(this).text('Hide Summary');
- } else{
- accordion.fadeOut(300);
- accordion.addClass('hidden');
- $(this).text('View Summary');
- }
- });
-
- //draw quiz grade circular chart
- this.chart_quiz_grade();
-
- },
-
- /**
- * Draws quiz grade circular charts
- * @return {[void]}
- */
- chart_quiz_grade: function() {
-
- /**
- * Used for populating the quiz grade svg graph
- * @type {[type]}
- */
- var $llms_circ = $('.llms-animated-circle'),
- $llms_prog_count = $('.llms-progress-circle-count'),
- llms_grade_perc = $('#llms-grade-value').val(),
- llms_circ_offset = 430 * llms_grade_perc / 100;
-
- $llms_circ.css({
- 'stroke-dashoffset' : 430 - llms_circ_offset
- });
-
- $llms_prog_count.html(Math.round(llms_grade_perc) + '%');
-
- },
-
- /**
- * Start Quiz
- * Finds values of quiz-id and user-id
- * Calls ajax.start_quiz
- * @return {[void]}
- */
- start_quiz: function () {
-
- var post_id = $('#llms-quiz').val(),
- user_id = $('#llms-user').val(),
- ajax = new Ajax( 'post', {
- action : 'start_quiz',
- quiz_id : post_id,
- user_id : user_id
- }, true);
-
- ajax.start_quiz( post_id, user_id );
- },
-
- /**
- * Answer Question
- * Finds values of quiz-id, question-type, question-id and answer
- * Calls ajax.answer_question
- *
- * @return {[void]}
- */
- answer_question: function() {
-
- if ( $( 'input[name=llms_option_selected]:checked' ).length <= 0 ){
-
- $('#llms-quiz-question-wrapper .llms-error').remove();
- $('#llms-quiz-question-wrapper')
- .prepend( '
You must enter an answer to continue.
' );
-
- } else {
-
- var quiz_id = $('#llms-quiz').val(),
- question_type = $('#question-type').val(),
- question_id = $('#question-id').val(),
- answer = $('input[name=llms_option_selected]:checked').val(),
-
- ajax = new Ajax('post', {
- action : 'answer_question',
- quiz_id : quiz_id,
- question_type : question_type,
- question_id : question_id,
- answer : answer
- },true );
-
- ajax.answer_question(
- question_type,
- question_id,
- answer
- );
-
- }
-
- },
-
- /**
- * Previous Question
- * Finds quiz-id and question-id
- * Calls ajax.previous_question to find the previous question
- * @return {[void]}
- */
- previous_question: function() {
-
- var quiz_id = $('#llms-quiz').val(),
- question_id = $('#question-id').val(),
- ajax = new Ajax('post', {
- action :'previous_question',
- quiz_id : quiz_id,
- question_id : question_id
- }, true);
-
- ajax.previous_question( quiz_id, question_id );
- },
-
- /**
- * Start Quiz Timer
- * Gets minutes from hidden field
- * Not used as actual quiz timer. Quiz is timed on the server from the quiz class
- * Calculates minutes to milliseconds and then converts to hours / minutes
- *
- * When time limit reaches 0 calls complete_quiz() to complete quiz.
- *
- * @return Calls get_count_down at a set interval of 1 second
- */
- start_quiz_timer: function() {
-
- var total_minutes = $('#set-time').val();
-
- if ( total_minutes ) {
-
- var target_date = new Date().getTime() + ((total_minutes * 60 ) * 1000), // set the countdown date
- time_limit = ((total_minutes * 60 ) * 1000),
- days, hours, minutes, seconds, // variables for time units
- countdown = document.getElementById('tiles'), // get tag element
- that = this;
-
- //set actual timer
- setTimeout(
- function() {
- that.complete_quiz();
- }, time_limit );
-
- this.getCountdown(
- total_minutes,
- target_date,
- time_limit,
- days,
- hours,
- minutes,
- seconds,
- countdown
- );
-
- //call get_count_down every 1 second
- setInterval(function () {
- that.getCountdown(
- total_minutes,
- target_date,
- time_limit,
- days,
- hours,
- minutes,
- seconds,
- countdown
- );
- }, 1000 );
- }
- },
-
- /**
- * Get Count Down
- * Called every second to update the on screen countdown timer
- * Changes color to yellow at 1/2 of total time
- * Changes color to red at 1/4 of total time
- * @param {[int]} minutes [description]
- * @param {[date]} target_date [description]
- * @param {[int]} time_limit [description]
- * @param {[int]} days [description]
- * @param {[int]} hours [description]
- * @param {[int]} minutes [description]
- * @param {[int]} seconds [description]
- * @param {[int]} countdown [description]
- * @return Displays updates hours, minutes on quiz timer
- */
- getCountdown: function(total_minutes, target_date, time_limit, days, hours, minutes, seconds, countdown){
-
- // find the amount of "seconds" between now and target
- var current_date = new Date().getTime(),
- seconds_left = (target_date - current_date) / 1000;
- if ( seconds_left >= 0 ) {
-
- if ( (seconds_left * 1000 ) < ( time_limit / 2 ) ) {
-
- $( '#tiles' ).removeClass('color-full');
- $( '#tiles' ).addClass('color-half');
-
- }
-
- if ( (seconds_left * 1000 ) < ( time_limit / 4 ) ) {
-
- $( '#tiles' ).removeClass('color-half');
- $( '#tiles' ).addClass('color-empty');
-
- }
-
- days = this.pad( parseInt(seconds_left / 86400) );
- seconds_left = seconds_left % 86400;
- hours = this.pad( parseInt(seconds_left / 3600) );
- seconds_left = seconds_left % 3600;
- minutes = this.pad( parseInt( seconds_left / 60 ) );
- seconds = this.pad( parseInt( seconds_left % 60 ) );
- // format countdown string + set tag value
- countdown.innerHTML = '' + hours + ':' + minutes + ':' + seconds + '';
- }
- },
-
- /**
- * Pad Number
- * pads number with 0 if single digit.
- * @param {[int]} n [number]
- * @return {[string]} [padded number]
- */
- pad: function(n) {
- return (n < 10 ? '0' : '') + n;
- },
-
- /**
- * Complete Quiz
- * Called by start_quiz_timer when countdown reaches 0
- * @return Calls ajax.complete_quiz to end quiz
- */
- complete_quiz: function() {
-
- var quiz_id = $('#llms-quiz').val(),
- question_type = $('#question-type').val(),
- question_id = $('#question-id').val(),
- answer = $('input[name=llms_option_selected]:checked').val(),
- ajax = new Ajax( 'post', {
- action : 'complete_quiz',
- quiz_id : quiz_id,
- question_id : question_id,
- question_type : question_type,
- answer : answer
- }, true);
- ajax.complete_quiz( quiz_id, question_id, question_type, answer );
- }
-};
diff --git a/_private/js/app/llms-review.js b/_private/js/app/llms-review.js
deleted file mode 100644
index 98372d846e..0000000000
--- a/_private/js/app/llms-review.js
+++ /dev/null
@@ -1,82 +0,0 @@
-/* global LLMS, $, jQuery */
-/* jshint strict: false */
-/*jshint -W020 */
-
-LLMS.Review = {
- /**
- * init
- * loads class methods
- */
- init: function()
- {
- console.log('Initializing Review ');
- this.bind();
- },
-
- /**
- * This function binds actions to the appropriate hooks
- */
- bind: function()
- {
- $('#llms_review_submit_button').click(function()
- {
- if ($('#review_title').val() !== '' && $('#review_text').val() !== '')
- {
- jQuery.ajax({
- type : 'post',
- dataType : 'json',
- url : window.llms.ajaxurl,
- data : {
- action : 'LLMSSubmitReview',
- review_title: $('#review_title').val(),
- review_text: $('#review_text').val(),
- pageID : $('#post_ID').val()
- },
- success: function()
- {
- console.log('Review success');
- $('#review_box').hide('swing');
- $('#thank_you_box').show('swing');
- },
- error: function(jqXHR, textStatus, errorThrown )
- {
- console.log(jqXHR);
- console.log(textStatus);
- console.log(errorThrown);
- },
- });
- } else {
- if ($('#review_title').val() === '')
- {
- $('#review_title_error').show('swing');
- } else {
- $('#review_title_error').hide('swing');
- }
- if ($('#review_text').val() === '')
- {
- $('#review_text_error').show('swing');
- } else {
- $('#review_text_error').hide('swing');
- }
- }
- });
- if ( $('#_llms_display_reviews').attr('checked') ) {
- $('.llms-num-reviews-top').addClass('top');
- $('.llms-num-reviews-bottom').show();
-
- } else {
- $('.llms-num-reviews-bottom').hide();
- }
- $('#_llms_display_reviews').change(function() {
- if ( $('#_llms_display_reviews').attr('checked') ) {
- $('.llms-num-reviews-top').addClass('top');
- $('.llms-num-reviews-bottom').show();
- } else {
- $('.llms-num-reviews-top').removeClass('top');
- $('.llms-num-reviews-bottom').hide();
- }
- });
-
- console.log('Review Methods Bound');
- },
-};
diff --git a/_private/js/app/llms-tabs.js b/_private/js/app/llms-tabs.js
deleted file mode 100644
index 692329f6cb..0000000000
--- a/_private/js/app/llms-tabs.js
+++ /dev/null
@@ -1,38 +0,0 @@
-/* global LLMS, $ */
-/* jshint strict: false */
-
-/**
- * Front End Quiz Class
- * Applies only to post type quiz
- * @type {Object}
- */
-LLMS.Tabs = {
-
- /**
- * init
- * loads class methods
- */
- init: function() {
- this.bind();
- },
-
- /**
- * Bind Method
- * Handles dom binding on load
- * @return {[type]} [description]
- */
- bind: function() {
- //var that = this;
-
- $('ul.tabs li').click(function(){
- var tab_id = $(this).attr('data-tab');
-
- $('ul.tabs li').removeClass('current');
- $('.tab-content').removeClass('current');
-
- $(this).addClass('current');
- $('#' + tab_id).addClass('current');
- });
-
- }
-};
diff --git a/_private/js/app/rest.js b/_private/js/app/rest.js
deleted file mode 100644
index b2f4cff74a..0000000000
--- a/_private/js/app/rest.js
+++ /dev/null
@@ -1,68 +0,0 @@
-/*global LLMS */
-/* jshint strict: false */
-
-/**
- * Rest Methods
- * Manages URL and Rest object parsing
- * @type {Object}
- */
-LLMS.Rest = {
-
- /**
- * init
- * loads class methods
- */
- init: function() {
- console.log('Initializing Rest Methods ');
- this.bind();
- },
-
- /**
- * Bind Method
- * Handles dom binding on load
- * @return {[type]} [description]
- */
- bind: function() {
- console.log('Rest Methods Bound');
- },
-
- /**
- * Searches for string matches in url path
- * @param {Array} strings [Array of strings to search for matches]
- * @return {Boolean} [Was a match found?]
- */
- is_path: function( strings ) {
-
- var path_exists = false,
- url = window.location.href;
-
- for( var i = 0; i < strings.length; i++ ) {
-
- if ( url.search( strings[i] ) > 0 && !path_exists ) {
-
- path_exists = true;
- }
- }
-
- return path_exists;
- },
-
- /**
- * Retrieves query variables
- * @return {[Array]} [array object of query variable key=>value pairs]
- */
- get_query_vars: function() {
-
- var vars = [], hash,
- hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
-
- for(var i = 0; i < hashes.length; i++) {
- hash = hashes[i].split('=');
- vars.push(hash[0]);
- vars[hash[0]] = hash[1];
- }
-
- return vars;
- }
-
-};
diff --git a/_private/js/llms-ajax.js b/_private/js/llms-ajax.js
deleted file mode 100644
index fd5a6e71fd..0000000000
--- a/_private/js/llms-ajax.js
+++ /dev/null
@@ -1,294 +0,0 @@
-function Ajax (type, data, cache) {
-
- this.type = type;
- this.data = data;
- this.cache = cache;
- this.dataType = 'json';
- this.url = window.ajaxurl || window.llms.ajaxurl;
-
-}
-
-Ajax.prototype.get_sections = function () {
- jQuery.ajax({
- type : this.type,
- url : this.url,
- data : this.data,
- cache : this.cache,
- dataType : this.dataType,
- success : function(response) { section_template(response); }
- });
-};
-
-Ajax.prototype.get_lesson = function (lesson_id, row_id, type) {
- jQuery.ajax({
- type : this.type,
- url : this.url,
- data : this.data,
- cache : this.cache,
- dataType : this.dataType,
- success : function(response) { add_edit_link(response, lesson_id, row_id, type); },
- });
-};
-
-Ajax.prototype.get_lessons = function (section_id, section_position) {
- jQuery.ajax({
- type : this.type,
- url : this.url,
- data : this.data,
- cache : this.cache,
- dataType : this.dataType,
- success : function(response) { lesson_template(response, section_id, section_position); },
- });
-};
-
-Ajax.prototype.update_syllabus = function () {
- jQuery.ajax({
- // type : this.type,
- url : this.url,
- data : this.data,
- cache : this.cache,
- dataType : this.dataType,
- success : function(response) { console.log(JSON.stringify(response, null, 4)); },
- error : function(errorThrown){ console.log(errorThrown); },
- });
-};
-
-Ajax.prototype.get_all_posts = function () {
- jQuery.ajax({
- type : this.type,
- url : this.url,
- data : this.data,
- cache : this.cache,
- dataType : this.dataType,
- success : function(response) { return_data(response); },
- });
-};
-
-Ajax.prototype.get_all_engagements = function () {
- jQuery.ajax({
- type : this.type,
- url : this.url,
- data : this.data,
- cache : this.cache,
- dataType : this.dataType,
- success : function(response) { return_engagement_data(response); },
- });
-};
-
-Ajax.prototype.get_associated_lessons = function (section_id, section_position) {
- jQuery.ajax({
- type : this.type,
- url : this.url,
- data : this.data,
- cache : this.cache,
- dataType : this.dataType,
- success : function(response) { add_associated_lessons(response, section_id, section_position); },
- });
-};
-
-Ajax.prototype.get_question = function (question_id, row_id) {
- jQuery.ajax({
- type : this.type,
- url : this.url,
- data : this.data,
- cache : this.cache,
- dataType : this.dataType,
- success : function(response) { add_edit_link(response, question_id, row_id); },
- });
-};
-
-Ajax.prototype.get_questions = function () {
- jQuery.ajax({
- type : this.type,
- url : this.url,
- data : this.data,
- cache : this.cache,
- dataType : this.dataType,
- success : function(response) { single_question_template(response); },
- });
-};
-
-Ajax.prototype.start_quiz = function (quiz_id, user_id) {
- jQuery.ajax({
- type : this.type,
- url : this.url,
- data : this.data,
- cache : this.cache,
- dataType : this.dataType,
- beforeSend: function() {
-
- jQuery( '#llms_start_quiz' ).hide();
- jQuery('html, body').stop().animate({scrollTop: 0}, 500);
- jQuery('#llms-quiz-wrapper').empty();
-
- jQuery('#llms-quiz-question-wrapper').append( 'Loading Question...
' );
-
- },
- success: function( html ) {
-
- //start the quiz timer
- LLMS.Quiz.start_quiz_timer();
-
- //show the quiz timer
- jQuery('#llms-quiz-timer').show();
-
- //remove the loading message
- jQuery('#llms-quiz-question-wrapper #loader').remove();
-
- //append the returned html
- jQuery('#llms-quiz-question-wrapper').append( html );
-
- jQuery('#llms_answer_question').click(function() {
-
- //call answer question
- LLMS.Quiz.answer_question();
-
- return false;
-
- });
- }
- });
-};
-
-Ajax.prototype.answer_question = function ( quiz_id, question_type, question_id, answer ) {
- jQuery.ajax({
- type : this.type,
- url : this.url,
- data : this.data,
- cache : this.cache,
- dataType : this.dataType,
- beforeSend: function() {
- jQuery('#llms-quiz-question-wrapper').empty();
- jQuery('#llms-quiz-question-wrapper').append( 'Loading Next Question...
' );
- },
- success: function( response ) {
-
- if ( response.redirect ) {
- window.location.replace( response.redirect );
-
- } else if ( response.message) {
- window.location.replace( response.redirect );
-
- } else {
-
- jQuery('#llms-quiz-question-wrapper #loader').remove();
-
- jQuery('#llms-quiz-question-wrapper').append( response.html );
-
- jQuery('#llms_answer_question').click(function() {
- LLMS.Quiz.answer_question();
- return false;
- });
-
- jQuery('#llms_prev_question').click(function() {
- LLMS.Quiz.previous_question();
- return false;
- });
-
- }
- } //end success
- });
-};
-
-Ajax.prototype.previous_question = function (quiz_id, question_id) {
- jQuery.ajax({
- type : this.type,
- url : this.url,
- data : this.data,
- cache : this.cache,
- dataType : this.dataType,
- beforeSend: function() {
-
- jQuery('#llms-quiz-question-wrapper').empty();
- jQuery('#llms-quiz-question-wrapper').append( 'Loading Question...
' );
-
- },
- success: function( html ) {
-
- jQuery('#llms-quiz-question-wrapper #loader').remove();
-
- jQuery('#llms-quiz-question-wrapper').append( html );
-
- jQuery('#llms_answer_question').click(function() {
- LLMS.Quiz.answer_question();
- return false;
- });
-
- jQuery('#llms_prev_question').click(function() {
- LLMS.Quiz.previous_question();
- return false;
- });
- }
-
- });
-};
-
-Ajax.prototype.complete_quiz = function ( quiz_id, question_id, question_type, answer ) {
- jQuery.ajax({
- type : this.type,
- url : this.url,
- data : this.data,
- cache : this.cache,
- dataType : this.dataType,
- beforeSend: function() {
-
- jQuery('#llms-quiz-question-wrapper').empty();
- jQuery('#llms-quiz-question-wrapper').append( 'Loading Quiz Results...
' );
-
- },
- success: function( response ) {
-
- //redirect back to quiz page
- window.location.replace( response.redirect );
-
- } //end success
- });
-};
-
-Ajax.prototype.getLessons = function () {
- jQuery.ajax({
- type : this.type,
- url : this.url,
- data : this.data,
- cache : this.cache,
- dataType : this.dataType,
- success : function(response) { return_data(response); },
- });
-};
-
-Ajax.prototype.getSections = function () {
- jQuery.ajax({
- type : this.type,
- url : this.url,
- data : this.data,
- cache : this.cache,
- dataType : this.dataType,
- success : function(response) { return_data(response); },
- });
-};
-
-Ajax.prototype.get_course_tracks = function () {
- jQuery.ajax({
- type : this.type,
- url : this.url,
- data : this.data,
- cache : this.cache,
- dataType : this.dataType,
- success : function(response) { return_data(response); },
- });
-};
-
-
-Ajax.prototype.check_voucher_duplicate = function () {
-
- jQuery.ajax({
- type : this.type,
- url : this.url,
- data : this.data,
- cache : this.cache,
- dataType : this.dataType,
- success : function(response) {
- llms_on_voucher_duplicate(response.duplicates);
- }
- });
-};
diff --git a/_private/js/llms-analytics.js b/_private/js/llms-analytics.js
deleted file mode 100644
index 7d7d59daa9..0000000000
--- a/_private/js/llms-analytics.js
+++ /dev/null
@@ -1,296 +0,0 @@
-jQuery(document).ready(function($) {
-
-
- var chosen_config = {
- '.chosen-select' : {},
- '.chosen-select-deselect' : {allow_single_deselect:true},
- '.chosen-select-no-single' : {disable_search_threshold:10},
- '.chosen-select-no-results': {no_results_text:'Oops, nothing found!'},
- '.chosen-select-width' : {width:"100%"}
- };
-
- for ( var selector in chosen_config ) {
- $( selector).chosen(chosen_config[selector] );
- }
-
- $( '.llms-date-range-select-start' ).datepicker();
- $( '.llms-date-range-select-end' ).datepicker();
-
-
-
-
-
-
-
- var query_vars = get_query_var();
- if ( ( query_vars.page === 'llms-analytics' && query_vars.tab === 'sales' ) ||
- ( query_vars.page === 'llms-analytics' && ! ( 'tab' in query_vars ) ) ) {
-
- google.setOnLoadCallback(drawChart);
-
- $(window).resize(function(){
- drawChart();
- });
-
- } else if ( query_vars.page === 'llms-analytics' && query_vars.tab === 'courses' ) {
-
- google.setOnLoadCallback(drawChart2);
- google.setOnLoadCallback(drawChart3);
-
-
-
- if ( $( window ).width() <= 768 ) {
- google.setOnLoadCallback(drawTableSmall);
- } else {
- google.setOnLoadCallback(drawTable);
- }
-
- $(window).resize(function(){
- if ( $( window ).width() <= 768 ) {
- drawTableSmall();
- } else {
- drawTable();
- }
-
- drawChart2();
- drawChart3();
-
- });
-
- } else if ( query_vars.page === 'llms-analytics' && query_vars.tab === 'memberships' ) {
-
- google.setOnLoadCallback( draw_enrolled_members_chart );
-
- if ( $( window ).width() <= 768 ) {
- google.setOnLoadCallback( draw_member_table_small );
- } else {
- google.setOnLoadCallback( draw_member_table );
- }
-
- $(window).resize(function(){
- if ( $( window ).width() <= 768 ) {
- draw_member_table_small();
- } else {
- draw_member_table();
- }
-
- draw_enrolled_members_chart();
-
- });
-
- } else if ( ( query_vars.page === 'llms-students' && ! ( 'tab' in query_vars ) )
- || ( query_vars.page === 'llms-students' && query_vars.tab === 'dashboard' ) ) {
-
- //manage expired users checkbox for students search screen
- //if all products is selected then hide and uncheck the show expired users filter
- if ( $( '.chosen-select-width').chosen().val() === 'all_products' ) {
- $( '#include_expired_users' ).hide();
- $( '#exp_users_filter' ).attr('checked', false);
- }
- //on checkbox selection if the expired users filter is hidden then display it.
- $( '.chosen-select-width').chosen().change( function() {
- if ( $( '.chosen-select-width').chosen().val() == 'all_products' ) {
- $( '#include_expired_users' ).hide();
- $( '#exp_users_filter' ).attr('checked', false);
- } else {
- $( '#include_expired_users' ).show();
- }
- });
-
- //get search results table
- google.setOnLoadCallback( draw_student_search_results_table );
-
- $(window).resize(function(){
-
- draw_student_search_results_table()
-
- });
-
- } else if ( query_vars.page === 'llms-students' && query_vars.tab === 'profile' ) {
-
- google.setOnLoadCallback( draw_student_course_table );
- google.setOnLoadCallback( draw_student_membership_table );
-
- $(window).resize(function(){
- draw_student_course_table()
- });
-
- }
-
-
-
-});
-
-google.load("visualization", "1", {packages:["corechart", "table"]});
-
-get_query_var = function() {
- var vars = [], hash;
- var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
- for(var i = 0; i < hashes.length; i++) {
- hash = hashes[i].split('=');
- vars.push(hash[0]);
- vars[hash[0]] = hash[1];
- }
- return vars;
-}
-
-
-
- function drawChart() {
- var data = google.visualization.arrayToDataTable(myJson);
-
- var options = {
- title: 'Sales Volume',
- hAxis: {title: 'Date Range', titleTextStyle: {color: '#333'}},
- vAxis: {minValue: 0}
- };
-
- var chart = new google.visualization.AreaChart(document.getElementById('chart_div'));
- chart.draw(data, options);
- }
-
- function drawChart2() {
- var data = google.visualization.arrayToDataTable(enrolled_students);
-
- var options = {
- title: 'Student Enrollment',
- //curveType: 'function',
- legend: { position: 'bottom' }
- };
-
- var chart = new google.visualization.LineChart(document.getElementById('curve_chart'));
-
- chart.draw(data, options);
- }
-
- function drawChart3() {
- var chart_height = ( ( lesson_completion_percent.length * 50 ) + 100 );
- var data = google.visualization.arrayToDataTable(lesson_completion_percent);
-
- var options = {
- title: 'Lesson Completion Percentage',
- legend: { position: 'bottom' },
- height: chart_height,
- hAxis: {title: 'Percentage', titleTextStyle: {color: '#333'}, minValue: 0, maxValue: 100 },
- vAxis: { title: 'Lesson' }
- };
-
- var chart = new google.visualization.BarChart(document.getElementById('lesson-completion-chart'));
- chart.draw(data, options);
- }
-
-
- function drawTable() {
- var data = new google.visualization.DataTable();
- data.addColumn('string', 'Last');
- data.addColumn('string', 'First');
- data.addColumn('string', 'Enrolled');
- data.addColumn('string', 'Completion');
- data.addColumn('string', 'Last Lesson Completed');
- data.addColumn('string', 'View');
- data.addRows(students_result_large);
-
- var table = new google.visualization.Table(document.getElementById('table_div'));
-
- table.draw(data, {showRowNumber: true, allowHtml: true});
- }
-
- function drawTableSmall() {
- var data = new google.visualization.DataTable();
- data.addColumn('string', 'Last');
- data.addColumn('string', 'First');
- data.addColumn('string', 'View');
- data.addRows(students_result_small);
-
- var table = new google.visualization.Table(document.getElementById('table_div'));
-
- table.draw(data, {showRowNumber: true, allowHtml: true});
- }
-
-
-
- function draw_enrolled_members_chart() {
- var data = google.visualization.arrayToDataTable(enrolled_members);
-
- var options = {
- title: 'Membership Enrollment by Day',
- //curveType: 'function',
- legend: { position: 'bottom' }
- };
-
- var chart = new google.visualization.LineChart(document.getElementById('enrolled_members_chart'));
-
- chart.draw(data, options);
- }
-
-
-
- function draw_member_table() {
-
- var data = new google.visualization.DataTable();
- data.addColumn('string', 'Last');
- data.addColumn('string', 'First');
- data.addColumn('string', 'Enrolled');
- data.addColumn('string', 'Expires');
- data.addColumn('string', 'View');
- data.addRows(members_result_large);
-
- var table = new google.visualization.Table(document.getElementById('members_table'));
-
- table.draw(data, {showRowNumber: true, allowHtml: true});
- }
-
- function draw_member_table_small() {
-
- var data = new google.visualization.DataTable();
- data.addColumn('string', 'Last');
- data.addColumn('string', 'First');
- data.addColumn('string', 'View');
- data.addRows(members_result_small);
-
- var table = new google.visualization.Table(document.getElementById('members_table'));
-
- table.draw(data, {showRowNumber: true, allowHtml: true});
- }
-
-
- function draw_student_search_results_table() {
-
- var data = new google.visualization.DataTable();
- data.addColumn('string', 'Last');
- data.addColumn('string', 'First');
- data.addColumn('string', 'Email');
- data.addColumn('string', 'View');
- data.addRows(students_search_result_large);
-
- var table = new google.visualization.Table(document.getElementById('student_search_results'));
-
- table.draw(data, {showRowNumber: true, allowHtml: true});
- }
-
- function draw_student_course_table() {
-
- var data = new google.visualization.DataTable();
- data.addColumn('string', 'Course');
- data.addColumn('string', 'Enrolled Date');
- data.addColumn('string', 'Status');
- data.addColumn('string', 'Progress');
- data.addRows(student_course_list);
-
- var table = new google.visualization.Table(document.getElementById('student_course_table'));
-
- table.draw(data, {showRowNumber: true, allowHtml: true});
- }
-
- function draw_student_membership_table() {
-
- var data = new google.visualization.DataTable();
- data.addColumn('string', 'membership');
- data.addColumn('string', 'Enrolled Date');
- data.addColumn('string', 'Status');
- data.addRows(student_membership_list);
-
- var table = new google.visualization.Table(document.getElementById('student_membership_table'));
-
- table.draw(data, {showRowNumber: true, allowHtml: true});
- }
diff --git a/_private/js/llms-form-checkout.js b/_private/js/llms-form-checkout.js
deleted file mode 100644
index 18da2be469..0000000000
--- a/_private/js/llms-form-checkout.js
+++ /dev/null
@@ -1,77 +0,0 @@
-jQuery(document).ready(function($) {
-
- $('#llms_country_options').chosen();
-
- //display coupon redemption form on link click
- get_current_price();
-
- $('#show-coupon').on( 'click', display_coupon_form );
-
- $('.llms-payment-options input[type=radio]').change(display_current_price);
-
- if ($('.llms-payment-methods input[type=radio]').length) {
- if ($('.llms-payment-methods input[type=radio]:checked').data('payment-type') == 'creditcard') {
-
- $('.llms-creditcard-fields').show();
- }
-
- }
-
- $('.llms-payment-methods input[type=radio]').change(display_credit_card_fields);
-
- //$('.llms-price-option-radio').on('change', display_current_price );
-
-});
-
-(function($){
-display_credit_card_fields = function() {
- if ($(this).data('payment-type') == 'creditcard') {
- $('.llms-creditcard-fields').slideDown('fast');
- }
- else {
- $('.llms-creditcard-fields').slideUp('fast');
- }
-};
-})(jQuery);
-
-(function($){
-display_coupon_form = function() {
-
- // Hide the show coupon link
- $(this).hide();
- $('#llms-checkout-coupon').show().slideDown('slow');
- return false;
-};
-})(jQuery);
-
-(function($){
-display_current_price = function() {
- var target_id = $(this).attr('id');
-
- var price = $('#' + target_id).parent().find('label').html();
-
- $('.llms-final-price').html(price);
-
- // Hide the show coupon link
- // $(this).hide();
- // $('#llms-checkout-coupon').show();
- // return false;
-};
-})(jQuery);
-
-(function($){
-get_current_price = function() {
-
- var price = $('.llms-payment-options input[type=radio]:checked');
- var target_id = $(price).attr('id');
-
- var price = $('#' + target_id).parent().find('label').html();
-
- $('.llms-final-price').html(price);
-
- // Hide the show coupon link
- // $(this).hide();
- // $('#llms-checkout-coupon').show();
- // return false;
-};
-})(jQuery);
\ No newline at end of file
diff --git a/_private/js/llms-lesson-locked.js b/_private/js/llms-lesson-locked.js
deleted file mode 100644
index d6a4036ed4..0000000000
--- a/_private/js/llms-lesson-locked.js
+++ /dev/null
@@ -1,20 +0,0 @@
-jQuery(document).ready(function($) {
- var tip = $('.llms-lesson-tooltip');
-
- $( '.llms-lesson-link-locked' ).click(function(e) {
- e.preventDefault();
- var el = $(this);
- var thistip = el.find('.llms-lesson-tooltip');
-
- if(!thistip.length) {
- el.append(tip.clone());
- thistip = el.find('.llms-lesson-tooltip');
- thistip.html(el.attr("title"));
- }
-
- thistip.toggleClass('active');
- })
-});
-
-
-
diff --git a/_private/js/llms-metabox-achievement.js b/_private/js/llms-metabox-achievement.js
deleted file mode 100644
index b65dabb613..0000000000
--- a/_private/js/llms-metabox-achievement.js
+++ /dev/null
@@ -1,62 +0,0 @@
-jQuery(document).ready(function($){
-
- $('.achievement_image_button').click(function(e) {
-
- //Create Media Manager On Click to allow multiple on one Page
- var achievement_uploader;
-
- e.preventDefault();
-
- //Setup the Variables based on the Button Clicked to enable multiple
- var achievement_img_input_id = '#'+this.id+'.upload_achievement_image';
- var achievement_img_src = 'img#'+this.id+'.llms_achievement_image';
-
-
- //If the uploader object has already been created, reopen the dialog
- if (achievement_uploader) {
- achievement_uploader.open();
- return;
- }
-
- //Extend the wp.media object
- achievement_uploader = wp.media.frames.file_frame = wp.media({
- title: 'Choose Achievement Image',
- button: {
- text: 'Choose Achievement'
- },
- multiple: false
- });
-
- //When a file is selected, grab the URL and set it as the text field's value
- achievement_uploader.on('select', function() {
- attachment = achievement_uploader.state().get('selection').first().toJSON();
- //Set the Field with the Image ID
- $(achievement_img_input_id).val(attachment.id);
- //Set the Sample Image with the URL
- $(achievement_img_src).attr('src', attachment.url);
-
- });
-
- //Open the uploader dialog
- achievement_uploader.open();
-
- });
-
-});
-/*
-* Media Manager 3.5
-* @version 1.70
-*/
-jQuery(document).ready(function($){
- //Remove Image and replace with default and Erase Image ID for achievement
- $('.llms_achievement_clear_image_button').click(function(e) {
- e.preventDefault();
- var achievement_remove_input_id = 'input#'+this.id+'.upload_achievement_image';
- var achievement_img_src = 'img#'+this.id+'.llms_achievement_image';
- var achievement_default_img_src = $('img#'+this.id+'.llms_achievement_default_image').attr("src");
-
- $(achievement_remove_input_id).val('');
- $(achievement_img_src).attr('src', achievement_default_img_src);
- });
-
-});
\ No newline at end of file
diff --git a/_private/js/llms-metabox-certificate.js b/_private/js/llms-metabox-certificate.js
deleted file mode 100644
index 981e855a8a..0000000000
--- a/_private/js/llms-metabox-certificate.js
+++ /dev/null
@@ -1,62 +0,0 @@
-jQuery(document).ready(function($){
-
- $('.certificate_image_button').click(function(e) {
-
- //Create Media Manager On Click to allow multiple on one Page
- var certificate_uploader;
-
- e.preventDefault();
-
- //Setup the Variables based on the Button Clicked to enable multiple
- var certificate_img_input_id = '#'+this.id+'.upload_certificate_image';
- var certificate_img_src = 'img#'+this.id+'.llms_certificate_image';
-
-
- //If the uploader object has already been created, reopen the dialog
- if (certificate_uploader) {
- certificate_uploader.open();
- return;
- }
-
- //Extend the wp.media object
- certificate_uploader = wp.media.frames.file_frame = wp.media({
- title: 'Choose Certificate Image',
- button: {
- text: 'Choose Certificate'
- },
- multiple: false
- });
-
- //When a file is selected, grab the URL and set it as the text field's value
- certificate_uploader.on('select', function() {
- attachment = certificate_uploader.state().get('selection').first().toJSON();
- //Set the Field with the Image ID
- $(certificate_img_input_id).val(attachment.id);
- //Set the Sample Image with the URL
- $(certificate_img_src).attr('src', attachment.url);
-
- });
-
- //Open the uploader dialog
- certificate_uploader.open();
-
- });
-
-});
-/*
-* Media Manager 3.5
-* @version 1.70
-*/
-jQuery(document).ready(function($){
- //Remove Image and replace with default and Erase Image ID for Certificate
- $('.llms_certificate_clear_image_button').click(function(e) {
- e.preventDefault();
- var certificate_remove_input_id = 'input#'+this.id+'.upload_certificate_image';
- var certificate_img_src = 'img#'+this.id+'.llms_certificate_image';
- var certificate_default_img_src = $('img#'+this.id+'.llms_certificate_default_image').attr("src");
-
- $(certificate_remove_input_id).val('');
- $(certificate_img_src).attr('src', certificate_default_img_src);
- });
-
-});
\ No newline at end of file
diff --git a/_private/js/llms-metabox-data.js b/_private/js/llms-metabox-data.js
deleted file mode 100644
index e86182845e..0000000000
--- a/_private/js/llms-metabox-data.js
+++ /dev/null
@@ -1,76 +0,0 @@
-jQuery(document).ready(function($) {
-
- if($('#_sale_price').length) {
- toggle_sales_fields();
- }
-
- if($('#_llms_subscription_price').length) {
- toggle_recurring_fields();
- }
-
- $('#cancel-sale').on('click', function () {
- clear_fields(["#_sale_price", "#_sale_price_dates_from", "#_sale_price_dates_to"]);
- return false;
- });
-
-});
-
-//Toggle sales fields
-(function($){
- toggle_sales_fields = function() {
-
- if ($('#_sale_price').val().length > 0) {
- $("#checkme").prop('checked', true);
- $("#extra").show("fast");
- }
- else {
- //Hide div w/id extra
- $("#extra").css("display","none");
- }
-
- $("#checkme").click(function(){
- toggle_sales_fields();
- });
-
- if ($("#checkme").is(":checked"))
- {
- //show the hidden div
- $("#extra").show("fast");
- }
- else
- {
- //otherwise, hide it
- $("#extra").hide("fast");
- }
- }
-})(jQuery);
-
-
-//Toggle Recurring Payment Fields
-(function($){
- toggle_recurring_fields = function() {
-
- if ($('#_llms_subscription_price').val().length > 0) {
- $("#recurring_options").show("fast");
- }
- else {
- //Hide div w/id extra
- $("#recurring_options").css("display","none");
- }
-
- $("#_llms_recurring_enabled").click(function(){
- toggle_recurring_fields();
- });
-
- if ($("#_llms_recurring_enabled").is(":checked"))
- {
- //show the hidden div
- $("#recurring_options").show("fast");
- }
- else
- {
- //otherwise, hide it
- $("#recurring_options").hide("fast");
- }
- }
-})(jQuery);
\ No newline at end of file
diff --git a/_private/js/llms-metabox-engagement.js b/_private/js/llms-metabox-engagement.js
deleted file mode 100644
index 653fafadad..0000000000
--- a/_private/js/llms-metabox-engagement.js
+++ /dev/null
@@ -1,149 +0,0 @@
-jQuery(document).ready(function($) {
-
- $('#_llms_trigger_type').change(function() {
- console.log('LLMS Engagement Trigger Changed');
-
- var triggerOptionSelected = $("option:selected", this);
- var triggerValueSelected = this.value;
-
- if (triggerValueSelected == 'lesson_completed') {
- console.log('LLMS Engagement: Begin Lesson Query');
- var lessons = get_all_lessons();
- console.log('LLMS Engagement: End Lesson Query');
- }
- else if (triggerValueSelected == 'section_completed') {
- console.log('LLMS Engagement: Begin Section Query');
- var sections = get_all_sections();
- console.log('LLMS Engagement: End Section Query');
- }
- else if (triggerValueSelected == 'course_completed') {
- console.log('LLMS Engagement: Begin Course Query');
- var courses = get_all_courses();
- console.log('LLMS Engagement: End Course Query');
- }
- else if (triggerValueSelected == 'course_purchased') {
- console.log('LLMS Engagement: Begin Course Query');
- var courses = get_all_courses();
- console.log('LLMS Engagement: End Course Query');
- }
- else if (triggerValueSelected == 'course_track_completed') {
- console.log('LLMS Engagement: Begin Course Track Query');
- var course_tracks = get_all_course_tracks();
- console.log('LLMS Engagement: End Course Track Query');
- }
- else {
- clear_trigger_select();
- }
- });
-
-
- $('#_llms_engagement_type').change(function() {
- var engOptionSelected = $("option:selected", this);
- var engValueSelected = this.value;
-
- if (engValueSelected == 'email') {
- var emails = get_all_emails();
- }
- if (engValueSelected == 'achievement') {
- var achievements = get_all_achievements();
- }
- if (engValueSelected == 'certificate') {
- var certificates = get_all_certificates();
- }
- else {
- clear_engagement_select();
- }
-
- });
-
-});
-
-return_data = function (response) {
- clear_trigger_select();
-
- var th = document.createElement('th');
-
- var label = document.createElement("Label");
- label.setAttribute("for",'trigger-select');
- label.innerHTML = "Engagement Trigger";
- th.appendChild(label);
-
- var td = document.createElement("td");
-
- var select = document.createElement('select');
- select.setAttribute('id', 'trigger-select');
- select.setAttribute('class', 'chosen-select chosen select section-select');
- select.setAttribute('name', '_llms_engagement_trigger');
-
- td.appendChild(select);
- jQuery(select).chosen({width:"300px"});
-
- if (!jQuery('#trigger-select').length) {
-
- // populate select with sections.
- jQuery(select).append('');
- for (var key in response) {
- if (response.hasOwnProperty(key)) {
- var option = jQuery('').val(response[key]['ID']).text(response[key]['post_title']);
- jQuery(select).append(option);
- }
- }
-
- jQuery('.engagement-option').append(th);
-
- jQuery('.engagement-option').append(td);
- }
-
- jQuery(select).trigger("chosen:updated");
-}
-
-return_engagement_data = function (response) {
- console.log(response);
- clear_engagement_select();
-
- var th = document.createElement('th');
-
- var label = document.createElement("Label");
- label.setAttribute("for",'engagement-select');
- label.innerHTML = "Event";
- th.appendChild(label);
-
- var td = document.createElement("td");
-
- var select = document.createElement('select');
- select.setAttribute('id', 'engagement-select');
- select.setAttribute('class', 'chosen-select chosen select section-select');
- select.setAttribute('name', '_llms_engagement');
-
- td.appendChild(select);
- jQuery(select).chosen({width:"300px"});
-
- if (!jQuery('#engagement-select').length) {
-
-
- // populate select with sections.
- jQuery(select).append('');
- for (var key in response) {
- if (response.hasOwnProperty(key)) {
- var option = jQuery('').val(response[key]['ID']).text(response[key]['post_title']);
- jQuery(select).append(option);
- }
- }
-
-
-
- jQuery('.engagement-posts').append(th);
-
- jQuery('.engagement-posts').append(td);
-
- }
- jQuery(select).trigger("chosen:updated");
-}
-
-clear_trigger_select = function () {
- jQuery('.engagement-option').empty();
-}
-
-clear_engagement_select = function () {
- jQuery('.engagement-posts').empty();
-}
\ No newline at end of file
diff --git a/_private/js/llms-metabox-fields.js b/_private/js/llms-metabox-fields.js
deleted file mode 100644
index 58e93194c5..0000000000
--- a/_private/js/llms-metabox-fields.js
+++ /dev/null
@@ -1,44 +0,0 @@
-// global admin functions
-(function($){
- // Datepicker to do: need to change this to an option that's set from admin.
- $('.datepicker').datepicker({
- dateFormat: "mm/dd/yy"
- });
-
- //only display prerequisite field if has prerequisite is checked
- if ( $( '#llms_has_prerequisite').attr('checked') ) {
- $( '.llms_select_prerequisite' ).show();
- } else {
- $( '.llms_select_prerequisite' ).hide();
- }
- $( '#llms_has_prerequisite').on( 'change', function() {
- if ( $( '#llms_has_prerequisite').attr('checked') ) {
- $( '.llms_select_prerequisite' ).show();
- } else {
- $( '.llms_select_prerequisite' ).hide();
- }
- });
-
- // Toggle sales price settings.
- clear_fields = function (fields) {
- var fields = fields;
-
- $.each( fields, function( i, val ) {
- $( val ).val('');
- });
- }
-
- // Load ajax animation functionality
- load_ajax_animation = function() {
- $('#loading').hide();
-
- $(document).ajaxStop(function(){
- $('#loading').hide();
- });
-
- $(document).ajaxStart(function(){
- $('#loading').show();
- });
- }
-
-})(jQuery);
diff --git a/_private/js/llms-metabox-membership.js b/_private/js/llms-metabox-membership.js
deleted file mode 100644
index 266dfe5968..0000000000
--- a/_private/js/llms-metabox-membership.js
+++ /dev/null
@@ -1,11 +0,0 @@
-jQuery(document).ready(function($) {
- jQuery(".add-course-to-membership").select2({
- width: '100%',
- placeholder: "Select courses",
- });
-
- jQuery(".remove-course-from-membership").select2({
- width: '100%',
- placeholder: "Select courses",
- });
-});
diff --git a/_private/js/llms-metabox-quiz-builder.js b/_private/js/llms-metabox-quiz-builder.js
deleted file mode 100644
index b7fdd0f925..0000000000
--- a/_private/js/llms-metabox-quiz-builder.js
+++ /dev/null
@@ -1,184 +0,0 @@
-jQuery(document).ready(function($) {
-
- $('#add_new_question').click(function() {
- get_questions();
- return false;
- });
-
- $('#publish').click(function() {
- update_question_options();
- });
-
- $('.llms-points').blur(function () {
- llms_total_points();
- });
-
- delete_option();
- single_option_sortable();
- order_single_options();
- llms_total_points();
-
- //only display quiz results options if show results field is checked
- if ( $( '#_llms_show_results').attr('checked') ) {
- $( '#_llms_show_correct_answer' ).parent().parent().show();
- $( '#_llms_show_options_description_right_answer ').parent().parent().show();
- $( '#_llms_show_options_description_wrong_answer').parent().parent().show();
- }
-
- $( '#_llms_show_results').on('change', function() {
- if( $( '#_llms_show_results').attr('checked')) {
- $( '#_llms_show_correct_answer' ).parent().parent().fadeIn(300);
- $( '#_llms_show_options_description_right_answer ').parent().parent().fadeIn(300);
- $( '#_llms_show_options_description_wrong_answer').parent().parent().fadeIn(300);
- } else {
- $( '#_llms_show_correct_answer' ).parent().parent().fadeOut(300);
- $( '#_llms_show_options_description_right_answer ').parent().parent().fadeOut(300);
- $( '#_llms_show_options_description_wrong_answer').parent().parent().fadeOut(300);
- }
- });
-});
-
-llms_total_points = function() {
- var sum = 0;
- jQuery('.llms-points').each(function() {
- sum += Number(jQuery(this).val());
- jQuery('#llms_points_total').text(sum);
- });
-}
-
- /**
- * Generate single choice question template
- */
-single_question_template = function (response) {
- var order = (jQuery("#llms-single-options tr").length);
- var questions = response;
-
- jQuery(' \
- \
- | \
- \
- | \
- \
- |
').appendTo('#llms-single-options .question-list tbody').hide().fadeIn(300);
-
-
- jQuery('.llms-points').blur(function () {
- var sum = 0;
- jQuery('.llms-points').each(function() {
- sum += Number(jQuery(this).val());
- jQuery('#llms_total_points').val(sum);
- });
- });
-
-
- for (var key in questions ) {
-
- if (questions.hasOwnProperty(key)) {
- var select = jQuery('#question_' + order + ' #question_select_' + order);
- var option = ''
- jQuery(select).append(option);
- //jQuery(select).prepend('');
- }
- }
- jQuery(select).prepend('');
- jQuery('.question-select').chosen();
- jQuery('#question_' + order + ' .question-select').change(function() { get_edit_link(jQuery(this)); });
-
- delete_option();
- order_single_options();
- jQuery('.llms-points').blur(function () {
- llms_total_points();
- });
-};
-
-delete_option = function() {
- jQuery('.deleteBtn').click(function() {
- var contentPanelId = jQuery(this).attr("class");
- jQuery(this).parent().parent().remove();
- order_single_options();
- });
-}
-
-/**
- * Sortable function
- */
-single_option_sortable = function() {
-
- jQuery('.question-list').sortable({
- items : '.list_item',
- axis : 'y',
- placeholder : "placeholder",
- cursor : "move",
- forcePlaceholderSize:true,
- helper : function(e, tr) {
- var jQueryoriginals = tr.children();
- var jQueryhelper = tr.clone();
- jQueryhelper.children().each(function(index)
- {
- jQuery(this).width(jQueryoriginals.eq(index).width())
- });
- return jQueryhelper;
- },
- start : function(event, ui) {
- var start_pos = ui.item.index();
- ui.item.data('start_pos', start_pos);
- },
- update : function(event, ui) {
- var start_pos = ui.item.data('start_pos');
- var end_pos = jQuery(ui.item).index();
- jQuery(ui.item).attr("data-order", end_pos);
- order_single_options();
-
-
- }
- });
-}
-
-order_single_options = function() {
- jQuery("#llms-single-options tr").each( function(index) {
- jQuery(this).attr("data-order", index);
- jQuery(this).attr("id", 'question_' + index);
- jQuery(this).find('.question-select').each( function() {
- jQuery(this).attr("id", 'question_select_' + index);
- });
- });
-}
-
-/**
- * Returns array of all questions
- */
-get_questions = function() {
- var ajax = new Ajax('post', {'action':'get_questions'}, true);
- ajax.get_questions();
-}
-
-get_edit_link = function(element) {
- console.log('get edit link called');
- console.log(element);
- var question_id = jQuery(element).val();
- var element_id = jQuery(element).attr('id');
- console.log('element_id');
- console.log(element_id);
-
- console.log(question_id);
- var ajax = new Ajax('post', {'action':'get_question', 'question_id' : question_id}, true);
- ajax.get_question(question_id, element_id);
-}
-add_edit_link = function(post, question_id, row_id) {
- console.log('add_edit_link called');
- console.log(question_id);
- console.log(post);
- console.log(row_id);
-
- var edit_link = document.createElement('a');
- edit_link.setAttribute('href', encodeURI(post.edit_url));
-
- var edit_icon = document.createElement('i');
- edit_icon.setAttribute('class', 'fa fa-pencil-square-o llms-fa-edit ');
-
- edit_link.appendChild(edit_icon);
- jQuery('#' + row_id).parent().parent().find('.llms-fa-edit').hide();
- jQuery('#' + row_id).parent().next().next().append(edit_link);
-
-
-}
diff --git a/_private/js/llms-metabox-single-question.js b/_private/js/llms-metabox-single-question.js
deleted file mode 100644
index 8dcb0c44c5..0000000000
--- a/_private/js/llms-metabox-single-question.js
+++ /dev/null
@@ -1,101 +0,0 @@
-jQuery(document).ready(function($) {
-
-$('#add_new_option').click(function() {
- single_course_template();
- return false;
-});
-
-$('#publish').click(function() {
- update_question_options();
-});
-
-delete_option();
-single_option_sortable();
-
-
-});
-
- /**
- * Generate single choice question template
- */
-single_course_template = function () {
- var order = (jQuery("#llms-single-options tr").length);
-
- jQuery(' \
-
- \
- \
-
- \
-
-
-
-
- |
-
- ').appendTo('#llms-single-options .dad-list tbody').hide().fadeIn(300);
-
- delete_option();
-};
-
-delete_option = function() {
- jQuery('.deleteBtn').click(function() {
- var contentPanelId = jQuery(this).attr("class");
- jQuery(this).parent().parent().remove();
- order_single_options();
- });
-}
-
-/**
- * Sortable function
- */
-single_option_sortable = function() {
-
- jQuery('.dad-list').sortable({
- items : '.list_item',
- axis : 'y',
- placeholder : "placeholder",
- cursor : "move",
- forcePlaceholderSize:true,
- helper : function(e, tr) {
- var jQueryoriginals = tr.children();
- var jQueryhelper = tr.clone();
- jQueryhelper.children().each(function(index)
- {
- jQuery(this).width(jQueryoriginals.eq(index).width())
- });
- return jQueryhelper;
- },
- start : function(event, ui) {
- var start_pos = ui.item.index();
- ui.item.data('start_pos', start_pos);
- var radio_checked= {};
-
- var radio_checked= {};
- jQuery('input[type="radio"]', this).each(function(){
- if(jQuery(this).is(':checked'))
- radio_checked[jQuery(this).attr('name')] = jQuery(this).val();
- jQuery(document).data('radio_checked', radio_checked);
- });
- },
- update : function(event, ui) {
- var start_pos = ui.item.data('start_pos');
- var end_pos = jQuery(ui.item).index();
- jQuery(ui.item).attr("data-order", end_pos);
-
- }
- }).bind('sortstop', function (event, ui) {
- var radio_restore = jQuery(document).data('radio_checked');
- jQuery.each(radio_restore, function(index, value){
- jQuery('input[name="'+index+'"][value="'+value+'"]').prop('checked', true);
- });
- order_single_options();
- });
-}
-
-order_single_options = function() {
- jQuery("#llms-single-options tr").each( function(index) {
- jQuery(this).attr("data-order", index);
- var option = jQuery(this).find('input[type="radio"]').val(index);
- });
-}
diff --git a/_private/js/llms-metabox-students.js b/_private/js/llms-metabox-students.js
deleted file mode 100644
index 14e419e2ea..0000000000
--- a/_private/js/llms-metabox-students.js
+++ /dev/null
@@ -1,66 +0,0 @@
-jQuery(document).ready(function($) {
- jQuery(".add-student-select").select2({
- width: '100%',
- multiple: true,
- allowClear: true,
- maximumSelectionLength: 10,
- placeholder: "Select a student",
- ajax: {
- url: "admin-ajax.php",
- method: 'POST',
- dataType: 'json',
- delay: 250,
- data: function (params) {
- return {
- term: params.term, // search term
- page: params.page,
- action: 'get_students',
- postId: jQuery('#post_ID').val(),
- };
- },
- processResults: function (data) {
- return {
- results: $.map(data.items, function (item) {
- return {
- text: item.name,
- id: item.id
- }
- })
- };
- },
- cache: true,
- },
- });
-
- jQuery(".remove-student-select").select2({
- width: '100%',
- multiple: true,
- maximumSelectionLength: 10,
- placeholder: "Select a student",
- ajax: {
- url: "admin-ajax.php",
- method: 'POST',
- dataType: 'json',
- delay: 250,
- data: function (params) {
- return {
- term: params.term, // search term
- page: params.page,
- action: 'get_enrolled_students',
- postId: jQuery('#post_ID').val(),
- };
- },
- processResults: function (data) {
- return {
- results: $.map(data.items, function (item) {
- return {
- text: item.name,
- id: item.id
- }
- })
- };
- },
- cache: true,
- }
- });
-});
diff --git a/_private/js/llms-metabox-syllabus.js b/_private/js/llms-metabox-syllabus.js
deleted file mode 100644
index 3ac80b6b40..0000000000
--- a/_private/js/llms-metabox-syllabus.js
+++ /dev/null
@@ -1,558 +0,0 @@
-jQuery(document).ready(function($) {
- // set up chosen dropdown
- var config = {
- '.chosen-select' : {},
- '.chosen-select-deselect' : {allow_single_deselect:true},
- '.chosen-select-no-single' : {disable_search_threshold:10},
- '.chosen-select-no-results': {no_results_text:'Oops, nothing found!'},
- '.chosen-select-width' : {width:"95%"}
- }
-
- for (var selector in config) {
- $(selector).chosen(config[selector]);
- }
-
- // set data element "last_selected" to current selected value on page load
- $("select").each(function () {
- reverse_selection(this);
- });
-
- // set data element "last_selected" to current selected value before change
- $('.section-select').click(function() {
- reverse_selection(this);
- });
-
- //disable selections on page load
- $('.section-select').attr('disabled', 'disbaled');
- $('.lesson-select').attr('disabled', 'disbaled');
-
- // check for duplicate sections on select change
- $('.section-select').change(function() {
- //catch_duplicates(this);
- //$(this).attr('disabled', 'disbaled');
- });
-
- // calls ajax update function on lesson change
- $('.lesson-select').change(function() {
- update_syllabus();
- //$(this).attr('disabled', 'disbaled');
- });
-
- // creates new section on Add a new Section button click
- $('#addNewSection').click(function(e){
- add_new_section();
- return false;
- });
-
- // Creates new lesson tr element on Add Lesson button click
- $('.addNewLesson').click(function( event ){
- add_new_lesson(event);
- return false;
- });
-
- // deletes the parent element and updates syllabus when delete button clicked
- $('.deleteBtn').click(function(){
- delete_this(this)
- return false;
- });
-
- // deletes the parent element and updates syllabus when delete button clicked
- $('.section-dismiss').click(function(){
- delete_this(this)
- return false;
- })
-
- // Sets lesson tr elements to sortable on page load
- lessons_sortable();
- load_ajax_animation();
- sections_sortable();
- order_lessons();
-
-
-});
-
-/**
- * Sets the currently selected element in the dropdown as the last_selected data element
- */
-reverse_selection = function( element ) {
- jQuery(element).data( 'last_selected', jQuery(element).val() );
-};
-
-/**
- * Return an alert message when a duplicate section is selected
- */
-catch_blanks = function (){
- jQuery('.section-select').each(function () {
- if ( jQuery(this).val() == null || jQuery(this).val() == '' ) {
- alert( 'Unable to save. Please make sure all of your sections are assigned.' );
- }
- else {
- update_syllabus();
- }
- });
-}
-
-catch_duplicates = function(element){
- var that = jQuery(this);
- var names = [];
- var new_value = jQuery(element).val();
- var old_value = jQuery(element).data('last_selected');
-
- jQuery('.section-select').each(function () {
-
- if (new_value == jQuery(this).val()) {
- names.push(jQuery(this).val())
- }
- //TODO im starting to really need a message class
- if (names.length > 1){
- alert("You cannot select a section already assigned to this course.");
- jQuery(element).val(old_value).attr("selected", true);
- return false;
- }
- });
-
- var promise = wait();
- promise.done(update_syllabus);
- var section_position = jQuery(element).parent().parent().attr('id');
- get_associated_lessons(new_value, section_position);
-}
-
-function wait() {
- var deferred = jQuery.Deferred();
-
- setTimeout(function() {
- deferred.resolve();
- }, 2500);
-
- return deferred.promise();
-}
-
-/**
- * Click event function to append a new row to the tasks table
- */
-lessons_sortable = function() {
-
- jQuery('.dad-list').sortable({
- items : '.list_item',
- axis : 'y',
- placeholder : "placeholder",
- cursor : "move",
- forcePlaceholderSize:true,
- helper : function(e, tr) {
- var jQueryoriginals = tr.children();
- var jQueryhelper = tr.clone();
- jQueryhelper.children().each(function(index)
- {
- jQuery(this).width(jQueryoriginals.eq(index).width())
- });
- return jQueryhelper;
- },
- start : function(event, ui) {
- var start_pos = ui.item.index();
- ui.item.data('start_pos', start_pos);
- },
- update : function(event, ui) {
- var start_pos = ui.item.data('start_pos');
- var end_pos = jQuery(ui.item).index();
-
- jQuery(ui.item).attr("data-order", end_pos);
- order_lessons();
- update_syllabus();
- }
- });
-}
-
-order_lessons = function() {
-
- jQuery('.course-section').each( function(index) {
- var section_position = jQuery(this).attr('id');
- jQuery(this).find('.list_item').each( function(index) {
- jQuery(this).attr("data-order", index + 1);
- jQuery(this).attr("id", 'row_' + section_position + '_' + (index + 1));
- });
- });
- jQuery('.course-section').each( function(index) {
- var section_position = jQuery(this).attr('id');
- jQuery(this).find('.lesson-select').each( function(index) {
- jQuery(this).attr("data-order", index + 1);
- jQuery(this).attr("id", 'list_item_' + section_position + '_' + (index + 1));
- });
- });
- jQuery('.course-section').each( function(index) {
- console.log(index);
- var section_position = jQuery(this).attr('id');
- jQuery(this).find('.section-select').each( function(index) {
- console.log('-------------------------------');
- console.log(section_position)
- jQuery(this).attr("id", 'section_item_' + section_position);
- });
- });
-}
-
-/**
- * Click event function to append a new row to the tasks table
- */
-sections_sortable = function() {
-
- jQuery('#syllabus').sortable({
- items : '.course-section',
- axis : 'y',
- placeholder : "sortable-placeholder section-placeholder",
- cursor : "move",
- start : function(event, ui) {
- var start_pos = ui.item.index();
- ui.item.data('start_pos', start_pos);
- },
- update : function(event, ui) {
- var start_pos = ui.item.data('start_pos');
- var end_pos = jQuery(ui.item).index();
-
- jQuery(ui.item).attr("data-order", end_pos);
- jQuery('.course-section').each( function(index) {
- jQuery( this ).attr('id', index + 1 )
- jQuery( this ).find('label').text('Section ' + (index + 1) + ':');
- jQuery( this ).find('a.add-lesson').attr('data-section', index + 1);
-
- });
- order_lessons();
- update_syllabus();
- }
- });
-}
-
-/**
- * get current sections from page
- */
-get_sections = function() {
- var request_obj = [];
- var i = 0;
-
- jQuery('#syllabus .section-select').each(function() {
- i++;
- var obj = {};
- var section_id = jQuery(this).val();
-
- obj['section_id'] = jQuery(this).val();
- obj['position'] = i;
-
- var order = jQuery(this).parent().parent().attr('id');
- jQuery( '#' + order ).find( "a" ).attr("data-section_id", section_id);
- jQuery( '#' + order ).find( "tr" ).attr("data-section_id", section_id);
-
- obj['lessons'] = parse_lessons (section_id);
-
- request_obj.push(obj);
- });
- return request_obj;
-}
-
-/**
- * Parse through all lessons and build lesson to section arrays.
- */
-parse_lessons = function(section_id) {
- var section_id = section_id
- var lessons = [];
-
- jQuery('.course-section tbody select').each(function() {
-
- var parent_position = jQuery(this).parent().parent().parent().parent().parent().attr("id");
- var rowId = (jQuery('#' + parent_position + ' .list_item').length) + 1;
-
- var lesson_obj = {};
-
- lesson_obj['lesson_id'] = jQuery(this).val();
-
- var position = jQuery(this).parent().parent().attr("data-order");
-
- position = position.substr(position.lastIndexOf("_") + 1);
-
- lesson_obj['position'] = position;
-
- if(jQuery(this).parent().parent().attr("data-section_id") == section_id) {
- lessons.push(lesson_obj);
- }
-
- });
- return lessons;
-}
-
-/**
- * Main update function, updates sections and lessons via ajax class.
- */
-update_syllabus = function() {
- console.log('update syllabus called');
- var request_obj = get_sections();
-
- var data = { 'action':'update_syllabus', 'post_id' : jQuery('#syllabus').data("post_id"), 'sections' : request_obj };
-
- var ajax = new Ajax('post', data, false);
- ajax.update_syllabus();
-}
-
-/**
- * Find lessons associated with selected section
- */
-get_associated_lessons = function(section_id, section_position) {
- console.log('get_associated_lessons called');
- var ajax = new Ajax('post', {'action':'get_associated_lessons', 'section_id' : section_id, 'section_position' : section_position }, true);
- ajax.get_associated_lessons(section_id, section_position);
-}
-
-add_associated_lessons = function(response, section_id, section_position) {
- console.log('add_associated_lessons triggered');
- console.log(response);
- console.log(section_id);
- console.log(section_position);
- associated_lesson_template(response, section_id, section_position)
-}
-
-/**
- * Returns array of all lessons
- */
-get_lessons = function(section_id, section_position) {
- var ajax = new Ajax('post', {'action':'get_lessons'}, true);
- ajax.get_lessons(section_id, section_position);
-}
-
-
-
-/**
- * Creates new lesson tr element
- */
-add_new_lesson = function(event){
-
- var section_id = jQuery(event.target).attr("data-section_id");
-
-
- if ( typeof( jQuery(event.target).attr("data-section") ) === undefined ) {
- var section_position = 1; //default if no sectionid exists
- }
- else {
- var section_position = jQuery(event.target).attr("data-section");
- }
-
- get_lessons(section_id, section_position);
-}
-
- /**
- * Generate lesson template
- */
-lesson_template = function (lessons, section_id, section_position) {
-
- var row_id = (jQuery('#' + section_position + ' .list_item').length) + 1;
- var select_class = 'list_item_' + section_position + '_' + row_id;
- var row_class = 'row_' + section_position + '_' + row_id;
-
- var numRows = jQuery('#' + section_position + ' .dad-list').length;
-
- jQuery(' \
- | |
')
- .appendTo('#' + section_position + ' .dad-list tbody').hide().fadeIn(300);
-
- jQuery(select).change(function() { update_syllabus(jQuery(select).val()); });
- jQuery('#' + section_position + ' .dad-list tbody ' + '.lesson-select').change(function() { get_edit_link(jQuery(this)); update_syllabus(); jQuery(this).attr('disabled', 'disabled'); });
-
- jQuery('.deleteBtn').click(function() {
- var contentPanelId = jQuery(this).attr("class");
- jQuery(this).parent().parent().remove();
- order_lessons();
- update_syllabus();
- });
-
-
- for (var key in lessons) {
-
- if (lessons.hasOwnProperty(key)) {
- var select = jQuery('#' + section_position + ' #' + select_class);
- var option = ''
- jQuery(select).append(option);
- //jQuery(select).prepend('');
- }
- }
- jQuery(select).prepend('');
-};
-
-get_edit_link = function(element) {
- console.log('get edit link called');
- console.log(element);
- var lesson_id = jQuery(element).val();
- var element_id = jQuery(element).attr('id');
- console.log('element_id');
- console.log(element_id);
- var type = jQuery(element).attr('data-type');
-
- console.log(lesson_id);
- var ajax = new Ajax('post', {'action':'get_lesson', 'lesson_id' : lesson_id}, true);
- ajax.get_lesson(lesson_id, element_id, type);
-}
-add_edit_link = function(post, lesson_id, row_id, type) {
- console.log('add_edit_link called');
- console.log(lesson_id);
- console.log(post);
- console.log(row_id);
- console.log('type');
- console.log(type);
- //var td = jQuery('#' + row_id).parent().next();
-
- var edit_link = document.createElement('a');
- edit_link.setAttribute('href', encodeURI(post.edit_url));
-
- var edit_icon = document.createElement('i');
- edit_icon.setAttribute('class', 'fa fa-pencil-square-o llms-fa-edit-lesson');
-
- edit_link.appendChild(edit_icon);
- // put components together to build section block
- if (type == 'lesson') {
-
- jQuery('#' + row_id).parent().next().append(edit_link);
- }
- if (type == 'section') {
- console.log('trying to append the emelemnt')
- jQuery('#' + row_id).parent().append(edit_link);
- }
-}
-
- /**
- * Generate lesson template
- */
-associated_lesson_template = function (lessons, section_id, section_position) {
- for (var key in lessons) {
-
- var row_id = (jQuery('#' + section_position + ' .list_item').length) + 1;
- var select_class = 'list_item_' + section_position + '_' + row_id;
- var row_class = 'row_' + section_position + '_' + row_id;
-
- var numRows = jQuery('#' + section_position + ' .dad-list').length;
-
- jQuery(' \
- | \
- |
')
- .appendTo('#' + section_position + ' .dad-list tbody').hide().fadeIn(300);
-
- jQuery(select).change(function() { update_syllabus(jQuery(select).val()); });
- jQuery('#' + section_position + ' .dad-list tbody ' + '.lesson-select').change(function() { get_edit_link(jQuery(this)); update_syllabus(); jQuery(this).attr('disabled', 'disbaled'); });
- jQuery('.deleteBtn').click(function() {
- var contentPanelId = jQuery(this).attr("class");
- jQuery(this).parent().parent().remove();
- order_lessons();
- update_syllabus();
- });
-
- if (lessons.hasOwnProperty(key)) {
- var select = jQuery('#' + section_position + ' #' + select_class);
-
- var option = ''
- jQuery(select).append(option);
- }
- }
-};
-
-/**
- * Deletes the grandparent of the delete button
- */
-delete_this = function(thisButton){
- jQuery(thisButton).parent().parent().remove();
-
- jQuery('.course-section').each( function(index) {
- jQuery( this ).attr('id', index + 1 )
- jQuery( this ).find('label').text('Section ' + (index + 1) + ':');
- jQuery( this ).find('a.add-lesson').attr('data-section', index + 1);
-
- });
- order_lessons();
- update_syllabus();
-};
-
-(function($){
- /**
- * Create new section
- */
- add_new_section = function () {
- var ajax = new Ajax( 'post', { 'action' : 'get_sections' }, false );
- ajax.get_sections();
- }
-
- /**
- * Generate section template
- */
- section_template = function (sections) {
- var response = sections;
-
- var id = $('.course-section').length + 1;
- var sectionId = 'section_' + id;
-
- // create section wrapper
- var section = document.createElement("div");
- section.setAttribute('class', 'course-section');
- section.setAttribute('id', id);
-
- // create title
- var title = document.createElement('p');
- title.setAttribute('class', 'title');
- var label = document.createElement('label');
- label.setAttribute('class', 'order');
- $(label).text('Section ' + id + ':');
-
- // create select list and add all options
- var select = document.createElement('select');
- select.setAttribute('class', 'chosen-select chosen select section-select');
- select.setAttribute('data-placeholder', 'Select a Section');
- select.setAttribute('data-type', 'section');
- select.setAttribute('id', 'section_item_' + id);
-
- $(select).click(function() { reverse_selection ($(select))});
- $(select).change(function() { get_edit_link(jQuery(this)); catch_duplicates($(select)); $(this).attr('disabled', 'disbaled'); });
- $(select).attr("selectedIndex", -1);
-
- // create delete button
- var removeBtn = document.createElement('i');
- removeBtn.setAttribute('data-code', 'f153');
- removeBtn.setAttribute('class', 'dashicons dashicons-dismiss section-dismiss');
- $(removeBtn).click(function() { delete_this($(select)) });
-
- var moveBtn = document.createElement('i');
- moveBtn.setAttribute('class', 'fa fa-bars llms-fa-move-lesson');
-
- // create add lesson button
- var addLessonBtn = document.createElement('a');
- addLessonBtn.setAttribute('class', 'button button-primary add-lesson');
-
- $('#' + sectionId).data( "section", { ID: id } );
- $(addLessonBtn).attr("data-section", id);
- $(addLessonBtn).text('Add Lesson');
- //$(addLessonBtn).on('click', add_new_lesson());
- $(addLessonBtn).on('click', function(event){ add_new_lesson( event ) } );
-
- // create table framework
- var table = '';
-
- // populate select with sections.
- $(select).append('');
- for (var key in response) {
- if (response.hasOwnProperty(key)) {
- var option = $('').val(response[key]['ID']).text(response[key]['post_title']);
- $(select).append(option);
- }
- }
-
- // put components together to build section block
- title.appendChild(label);
- title.appendChild(select);
- title.appendChild(removeBtn);
- title.appendChild(moveBtn);
- section.appendChild(title);
- $(section).append(table);
- $(section).append(addLessonBtn);
-
- $("#syllabus").hide().append(section).fadeIn(1000);
- $(select).trigger("chosen:updated")
-
- // grant table sorting functionality
- lessons_sortable();
- }
-})(jQuery);
\ No newline at end of file
diff --git a/_private/js/llms-metabox-voucher.js b/_private/js/llms-metabox-voucher.js
deleted file mode 100644
index b9778a3096..0000000000
--- a/_private/js/llms-metabox-voucher.js
+++ /dev/null
@@ -1,168 +0,0 @@
-(function( $ ){
-
- var deleteIds = [];
-
- $(document).ready(function () {
-
- var changeNotSaved = false;
- var codesAddedSinceLastSave = 0;
-
- $('#llms_voucher_add_codes').click(function (e) {
- e.preventDefault();
-
- var qty = $('#llms_voucher_add_quantity').val();
- var uses = $('#llms_voucher_add_uses').val();
- var html = '';
-
- changeNotSaved = true;
-
- if ($.isNumeric(qty) && $.isNumeric(uses)) {
- if (parseInt(qty) > 0 && parseInt(uses) > 0) {
-
- if(qty > 50) {
- alert("You can only generate 50 rows at a time");
- return;
- }
-
- codesAddedSinceLastSave += parseInt(qty);
-
- if(codesAddedSinceLastSave > 50) {
- alert("Please save before adding any more codes, limit is 50 at a time");
- codesAddedSinceLastSave -= parseInt(qty);
- return;
- }
-
- for (var i = 1; i <= parseInt(qty); i++) {
- html += '' +
- ' | ' +
- '' +
- '' +
- '' +
- ' | ' +
- '0 / | ' +
- '' + deleteIcon + ' | ' +
- '
';
- }
- }
- }
-
- $('#llms_voucher_tbody').append(html);
-
- bindDeleteVoucherCode();
- });
-
- bindDeleteVoucherCode();
-
- $('#llms_voucher_tbody input').change(function() {
- changeNotSaved = true;
- });
-
- $( "#post" ).on( 'submit', function() {
- if($('#publish').attr('name') === 'publish') {
- $('').attr('type', 'hidden')
- .attr('name', "publish")
- .attr('value', "true")
- .appendTo('#post');
- }
- return true;
- } );
-
- window.onbeforeunload = function() {
- return changeNotSaved ? "If you leave this page you will lose your unsaved changes." : null;
- };
-
- $('input[type=submit]').click(function (e) {
- var unique_values = {};
- var duplicate = false;
- $('input[name="llms_voucher_code[]"]').each(function() {
- var val = $(this).val()
- if ( ! unique_values[val] ) {
- unique_values[val] = true;
- } else {
- $(this).css('background-color', 'rgba(226, 96, 73, 0.6)');
- duplicate = true;
- }
- });
- if(duplicate) {
- alert('Please make sure that there are no duplicate voucher codes.');
- return false;
- }
-
- //if course or membership is not selected, don't allow user to save
- if(!($('#_llms_voucher_courses').val() || $('#_llms_voucher_membership').val())) {
- alert('Please select course or membership before saving.');
- return false;
- }
-
- changeNotSaved = false;
- check_voucher_duplicate();
- return false;
- });
-
- function bindDeleteVoucherCode() {
- $('.llms-voucher-delete').unbind('click');
- $('.llms-voucher-delete').click(function (e) {
- e.preventDefault();
-
- var t = $(this);
- var old = t.data('id');
-
- changeNotSaved = true;
-
- if (old) {
- deleteIds.push(old);
-
- $('#delete_ids').val(deleteIds.join(','));
- } else {
- codesAddedSinceLastSave--;
- }
-
- // remove html block
- t.closest('tr').remove();
- });
- }
- });
- function randomizeCode() {
- var text = '';
- var possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
-
- for (var i = 0; i < 12; i++)
- text += possible.charAt(Math.floor(Math.random() * possible.length));
-
- return text;
- }
-
- /**
- * Check for voucher duplicates in other posts.
- */
- function check_voucher_duplicate() {
-
- var codes = get_codes_from_inputs();
-
- var data = {action: 'check_voucher_duplicate', 'postId' : jQuery('#post_ID').val(), 'codes' : codes };
-
- var ajax = new Ajax('post', data, false);
- ajax.check_voucher_duplicate();
- }
-
- function get_codes_from_inputs() {
- var codes = [];
- $('input[name="llms_voucher_code[]"]').each(function() {
- codes.push($(this).val());
- });
-
- return codes;
- }
-
-})(jQuery);
-
-function llms_on_voucher_duplicate (results) {
- if(results.length) {
- for(var i = 0; i < results.length; i++ ) {
- jQuery('input[value="' + results[i].code + '"]').css('background-color', 'rgba(226, 96, 73, 0.6)');
- }
- alert('Please make sure that there are no duplicate voucher codes.');
- } else {
- jQuery( "#post" ).submit();
- }
-}
diff --git a/_private/js/llms-metabox.js b/_private/js/llms-metabox.js
deleted file mode 100644
index 81d4b7db1e..0000000000
--- a/_private/js/llms-metabox.js
+++ /dev/null
@@ -1,61 +0,0 @@
-jQuery(document).ready(function($) {
-
- $('#associated_course').chosen();
- $('#associated_section').chosen();
- $('#trigger-select').chosen();
- $('.question-select').chosen();
- $('.llms-meta-select').chosen();
- $('.llms-meta-multiselect').chosen();
-
- //needs to be put into the infusionsoft plugin
- $('#lifterlms_gateway_is_accepted_cards').chosen({width: '350px'});
-
-});
-
-
-jQuery('.metabox_submit').click(function(e) {
- e.preventDefault();
- jQuery('#publish').click();
-});
-
-/**
- * Returns array of all lessons
- */
-get_all_lessons = function() {
- //var ajax = new Ajax('post', {'action':'get_all_posts', 'post_type' : 'lesson'}, true);
- //ajax.get_all_posts( post_type );
- var ajax = new Ajax('post', {'action':'getLessons'}, true);
- ajax.getLessons();
-}
-
-get_all_sections = function() {
- //var ajax = new Ajax('post', {'action':'get_all_posts', 'post_type' : 'section'}, true);
- //ajax.get_all_posts( post_type );
- var ajax = new Ajax('post', {'action':'getSections'}, true);
- ajax.getSections();
-}
-
-get_all_courses = function() {
- var ajax = new Ajax('post', {'action':'get_courses'}, true);
- ajax.get_all_posts();
-}
-
-get_all_course_tracks = function() {
- var ajax = new Ajax('post', {'action':'get_course_tracks'}, true);
- ajax.get_course_tracks();
-}
-
-get_all_emails = function() {
- var ajax = new Ajax('post', {'action':'get_emails'}, true);
- ajax.get_all_engagements();
-}
-
-get_all_achievements = function() {
- var ajax = new Ajax('post', {'action':'get_achievements'}, true);
- ajax.get_all_engagements();
-}
-
-get_all_certificates = function() {
- var ajax = new Ajax('post', {'action':'get_certificates'}, true);
- ajax.get_all_engagements();
-}
diff --git a/_private/js/llms.js b/_private/js/llms.js
deleted file mode 100644
index b773167d26..0000000000
--- a/_private/js/llms.js
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * Main LLMS Namespace
- * @type {[type]}
- */
-var LLMS = window.LLMS || {};
-(function($){
- 'use strict';
- /**
- * load all app modules
- */
- //= include /app/*.js
-
- /**
- * Initializes all classes within the LLMS Namespace
- * @return {[type]} [description]
- */
- LLMS.init = function() {
-
- for (var func in LLMS) {
-
- if ( typeof LLMS[func] === 'object' && LLMS[func] !== null ) {
-
- if ( LLMS[func].init !== undefined ) {
-
- if ( typeof LLMS[func].init === 'function') {
- LLMS[func].init();
- }
-
- }
-
- }
-
- }
-
- };
-
- LLMS.init($);
-
-
-
-})(jQuery);
\ No newline at end of file
diff --git a/_private/scss/_includes/_extends.scss b/_private/scss/_includes/_extends.scss
deleted file mode 100644
index 4f2df4175c..0000000000
--- a/_private/scss/_includes/_extends.scss
+++ /dev/null
@@ -1,26 +0,0 @@
-%cf {
- &:after {
- content: "";
- display: table;
- clear: both;
- }
-}
-
-
-
-
-%llms-element {
- background: $el-background;
- box-shadow: $el-box-shadow;
- display: block;
- color: #212121;
- min-height: 85px;
- padding: 15px;
- text-decoration: none;
- position: relative;
- transition: background .4s ease;
-
- &:hover {
- background: $el-background-hover;
- }
-}
\ No newline at end of file
diff --git a/_private/scss/_includes/_mixins.scss b/_private/scss/_includes/_mixins.scss
deleted file mode 100644
index 876668b31f..0000000000
--- a/_private/scss/_includes/_mixins.scss
+++ /dev/null
@@ -1,59 +0,0 @@
-//
-// Positining mixin
-//
-// @param [string] $position: position
-// @param [list] $args (()): offsets list
-//
-// @source http://hugogiraudel.com/2013/08/05/offsets-sass-mixin/
-//
-@mixin position($position, $args: ()) {
- $offsets: top right bottom left;
- position: $position;
-
- @each $offset in $offsets {
- $index: index($args, $offset);
-
- @if $index {
- @if $index == length($args) {
- #{$offset}: 0;
- }
- @else {
- $next: nth($args, $index + 1);
- @if is-valid-length($next) {
- #{$offset}: $next;
- }
- @else if index($offsets, $next) {
- #{$offset}: 0;
- }
- @else {
- @warn "Invalid value `#{$next}` for offset `#{$offset}`.";
- }
- }
- }
- }
-}
-
-//
-// Function checking if $value is a valid length
-// @param [literal] $value: value to test
-// @return [bool]
-//
-@function is-valid-length($value) {
- $r: (type-of($value) == "number" and not unitless($value)) or (index(auto initial inherit 0, $value) != null);
- @return $r;
-}
-
-//
-// Shorthands
-//
-@mixin absolute($args: ()) {
- @include position(absolute, $args);
-}
-
-@mixin fixed($args: ()) {
- @include position(fixed, $args);
-}
-
-@mixin relative($args: ()) {
- @include position(relative, $args);
-}
\ No newline at end of file
diff --git a/_private/scss/_includes/_vars.scss b/_private/scss/_includes/_vars.scss
deleted file mode 100644
index d5d1317d3d..0000000000
--- a/_private/scss/_includes/_vars.scss
+++ /dev/null
@@ -1,15 +0,0 @@
-$color-black: #010101;
-
-$color-red: #e5554e;
-$color-red-hover: darken($color-red,5);
-
-$color-white: #fefefe;
-
-$el-box-shadow: 0 1px 2px 0 rgba($color-black,0.4);
-$el-background: #f1f1f1;
-$el-background-hover: #eaeaea;
-
-$break-xsmall: 320px;
-$break-small: 641px;
-$break-medium: 768px;
-$break-large: 1024px;
\ No newline at end of file
diff --git a/_private/scss/_includes/vendor/_font-awesome.scss b/_private/scss/_includes/vendor/_font-awesome.scss
deleted file mode 100644
index f1992ad40b..0000000000
--- a/_private/scss/_includes/vendor/_font-awesome.scss
+++ /dev/null
@@ -1,1672 +0,0 @@
-/*!
- * Font Awesome 4.2.0 by @davegandy - http://fontawesome.io - @fontawesome
- * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
- */
-/* FONT PATH
- * -------------------------- */
-@font-face {
- font-family: 'FontAwesome';
- src: url('../fonts/fontawesome/fontawesome-webfont.eot?v=4.2.0');
- src: url('../fonts/fontawesome/fontawesome-webfont.eot?#iefix&v=4.2.0') format('embedded-opentype'), url('../fonts/fontawesome/fontawesome-webfont.woff?v=4.2.0') format('woff'), url('../fonts/fontawesome/fontawesome-webfont.ttf?v=4.2.0') format('truetype'), url('../fonts/fontawesome/fontawesome-webfont.svg?v=4.2.0#fontawesomeregular') format('svg');
- font-weight: normal;
- font-style: normal;
-}
-.fa {
- display: inline-block;
- font: normal normal normal 14px/1 FontAwesome;
- font-size: inherit;
- text-rendering: auto;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
-/* makes the font 33% larger relative to the icon container */
-.fa-lg {
- font-size: 1.33333333em;
- line-height: 0.75em;
- vertical-align: -15%;
-}
-.fa-2x {
- font-size: 2em;
-}
-.fa-3x {
- font-size: 3em;
-}
-.fa-4x {
- font-size: 4em;
-}
-.fa-5x {
- font-size: 5em;
-}
-.fa-fw {
- width: 1.28571429em;
- text-align: center;
-}
-.fa-ul {
- padding-left: 0;
- margin-left: 2.14285714em;
- list-style-type: none;
-}
-.fa-ul > li {
- position: relative;
-}
-.fa-li {
- position: absolute;
- left: -2.14285714em;
- width: 2.14285714em;
- top: 0.14285714em;
- text-align: center;
-}
-.fa-li.fa-lg {
- left: -1.85714286em;
-}
-.fa-border {
- padding: .2em .25em .15em;
- border: solid 0.08em #eeeeee;
- border-radius: .1em;
-}
-.pull-right {
- float: right;
-}
-.pull-left {
- float: left;
-}
-.fa.pull-left {
- margin-right: .3em;
-}
-.fa.pull-right {
- margin-left: .3em;
-}
-.fa-spin {
- -webkit-animation: fa-spin 2s infinite linear;
- animation: fa-spin 2s infinite linear;
-}
-@-webkit-keyframes fa-spin {
- 0% {
- -webkit-transform: rotate(0deg);
- transform: rotate(0deg);
- }
- 100% {
- -webkit-transform: rotate(359deg);
- transform: rotate(359deg);
- }
-}
-@keyframes fa-spin {
- 0% {
- -webkit-transform: rotate(0deg);
- transform: rotate(0deg);
- }
- 100% {
- -webkit-transform: rotate(359deg);
- transform: rotate(359deg);
- }
-}
-.fa-rotate-90 {
- filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
- -webkit-transform: rotate(90deg);
- -ms-transform: rotate(90deg);
- transform: rotate(90deg);
-}
-.fa-rotate-180 {
- filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
- -webkit-transform: rotate(180deg);
- -ms-transform: rotate(180deg);
- transform: rotate(180deg);
-}
-.fa-rotate-270 {
- filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
- -webkit-transform: rotate(270deg);
- -ms-transform: rotate(270deg);
- transform: rotate(270deg);
-}
-.fa-flip-horizontal {
- filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);
- -webkit-transform: scale(-1, 1);
- -ms-transform: scale(-1, 1);
- transform: scale(-1, 1);
-}
-.fa-flip-vertical {
- filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);
- -webkit-transform: scale(1, -1);
- -ms-transform: scale(1, -1);
- transform: scale(1, -1);
-}
-:root .fa-rotate-90,
-:root .fa-rotate-180,
-:root .fa-rotate-270,
-:root .fa-flip-horizontal,
-:root .fa-flip-vertical {
- filter: none;
-}
-.fa-stack {
- position: relative;
- display: inline-block;
- width: 2em;
- height: 2em;
- line-height: 2em;
- vertical-align: middle;
-}
-.fa-stack-1x,
-.fa-stack-2x {
- position: absolute;
- left: 0;
- width: 100%;
- text-align: center;
-}
-.fa-stack-1x {
- line-height: inherit;
-}
-.fa-stack-2x {
- font-size: 2em;
-}
-.fa-inverse {
- color: #ffffff;
-}
-/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
- readers do not read off random characters that represent icons */
-.fa-glass:before {
- content: "\f000";
-}
-.fa-music:before {
- content: "\f001";
-}
-.fa-search:before {
- content: "\f002";
-}
-.fa-envelope-o:before {
- content: "\f003";
-}
-.fa-heart:before {
- content: "\f004";
-}
-.fa-star:before {
- content: "\f005";
-}
-.fa-star-o:before {
- content: "\f006";
-}
-.fa-user:before {
- content: "\f007";
-}
-.fa-film:before {
- content: "\f008";
-}
-.fa-th-large:before {
- content: "\f009";
-}
-.fa-th:before {
- content: "\f00a";
-}
-.fa-th-list:before {
- content: "\f00b";
-}
-.fa-check:before {
- content: "\f00c";
-}
-.fa-remove:before,
-.fa-close:before,
-.fa-times:before {
- content: "\f00d";
-}
-.fa-search-plus:before {
- content: "\f00e";
-}
-.fa-search-minus:before {
- content: "\f010";
-}
-.fa-power-off:before {
- content: "\f011";
-}
-.fa-signal:before {
- content: "\f012";
-}
-.fa-gear:before,
-.fa-cog:before {
- content: "\f013";
-}
-.fa-trash-o:before {
- content: "\f014";
-}
-.fa-home:before {
- content: "\f015";
-}
-.fa-file-o:before {
- content: "\f016";
-}
-.fa-clock-o:before {
- content: "\f017";
-}
-.fa-road:before {
- content: "\f018";
-}
-.fa-download:before {
- content: "\f019";
-}
-.fa-arrow-circle-o-down:before {
- content: "\f01a";
-}
-.fa-arrow-circle-o-up:before {
- content: "\f01b";
-}
-.fa-inbox:before {
- content: "\f01c";
-}
-.fa-play-circle-o:before {
- content: "\f01d";
-}
-.fa-rotate-right:before,
-.fa-repeat:before {
- content: "\f01e";
-}
-.fa-refresh:before {
- content: "\f021";
-}
-.fa-list-alt:before {
- content: "\f022";
-}
-.fa-lock:before {
- content: "\f023";
-}
-.fa-flag:before {
- content: "\f024";
-}
-.fa-headphones:before {
- content: "\f025";
-}
-.fa-volume-off:before {
- content: "\f026";
-}
-.fa-volume-down:before {
- content: "\f027";
-}
-.fa-volume-up:before {
- content: "\f028";
-}
-.fa-qrcode:before {
- content: "\f029";
-}
-.fa-barcode:before {
- content: "\f02a";
-}
-.fa-tag:before {
- content: "\f02b";
-}
-.fa-tags:before {
- content: "\f02c";
-}
-.fa-book:before {
- content: "\f02d";
-}
-.fa-bookmark:before {
- content: "\f02e";
-}
-.fa-print:before {
- content: "\f02f";
-}
-.fa-camera:before {
- content: "\f030";
-}
-.fa-font:before {
- content: "\f031";
-}
-.fa-bold:before {
- content: "\f032";
-}
-.fa-italic:before {
- content: "\f033";
-}
-.fa-text-height:before {
- content: "\f034";
-}
-.fa-text-width:before {
- content: "\f035";
-}
-.fa-align-left:before {
- content: "\f036";
-}
-.fa-align-center:before {
- content: "\f037";
-}
-.fa-align-right:before {
- content: "\f038";
-}
-.fa-align-justify:before {
- content: "\f039";
-}
-.fa-list:before {
- content: "\f03a";
-}
-.fa-dedent:before,
-.fa-outdent:before {
- content: "\f03b";
-}
-.fa-indent:before {
- content: "\f03c";
-}
-.fa-video-camera:before {
- content: "\f03d";
-}
-.fa-photo:before,
-.fa-image:before,
-.fa-picture-o:before {
- content: "\f03e";
-}
-.fa-pencil:before {
- content: "\f040";
-}
-.fa-map-marker:before {
- content: "\f041";
-}
-.fa-adjust:before {
- content: "\f042";
-}
-.fa-tint:before {
- content: "\f043";
-}
-.fa-edit:before,
-.fa-pencil-square-o:before {
- content: "\f044";
-}
-.fa-share-square-o:before {
- content: "\f045";
-}
-.fa-check-square-o:before {
- content: "\f046";
-}
-.fa-arrows:before {
- content: "\f047";
-}
-.fa-step-backward:before {
- content: "\f048";
-}
-.fa-fast-backward:before {
- content: "\f049";
-}
-.fa-backward:before {
- content: "\f04a";
-}
-.fa-play:before {
- content: "\f04b";
-}
-.fa-pause:before {
- content: "\f04c";
-}
-.fa-stop:before {
- content: "\f04d";
-}
-.fa-forward:before {
- content: "\f04e";
-}
-.fa-fast-forward:before {
- content: "\f050";
-}
-.fa-step-forward:before {
- content: "\f051";
-}
-.fa-eject:before {
- content: "\f052";
-}
-.fa-chevron-left:before {
- content: "\f053";
-}
-.fa-chevron-right:before {
- content: "\f054";
-}
-.fa-plus-circle:before {
- content: "\f055";
-}
-.fa-minus-circle:before {
- content: "\f056";
-}
-.fa-times-circle:before {
- content: "\f057";
-}
-.fa-check-circle:before {
- content: "\f058";
-}
-.fa-question-circle:before {
- content: "\f059";
-}
-.fa-info-circle:before {
- content: "\f05a";
-}
-.fa-crosshairs:before {
- content: "\f05b";
-}
-.fa-times-circle-o:before {
- content: "\f05c";
-}
-.fa-check-circle-o:before {
- content: "\f05d";
-}
-.fa-ban:before {
- content: "\f05e";
-}
-.fa-arrow-left:before {
- content: "\f060";
-}
-.fa-arrow-right:before {
- content: "\f061";
-}
-.fa-arrow-up:before {
- content: "\f062";
-}
-.fa-arrow-down:before {
- content: "\f063";
-}
-.fa-mail-forward:before,
-.fa-share:before {
- content: "\f064";
-}
-.fa-expand:before {
- content: "\f065";
-}
-.fa-compress:before {
- content: "\f066";
-}
-.fa-plus:before {
- content: "\f067";
-}
-.fa-minus:before {
- content: "\f068";
-}
-.fa-asterisk:before {
- content: "\f069";
-}
-.fa-exclamation-circle:before {
- content: "\f06a";
-}
-.fa-gift:before {
- content: "\f06b";
-}
-.fa-leaf:before {
- content: "\f06c";
-}
-.fa-fire:before {
- content: "\f06d";
-}
-.fa-eye:before {
- content: "\f06e";
-}
-.fa-eye-slash:before {
- content: "\f070";
-}
-.fa-warning:before,
-.fa-exclamation-triangle:before {
- content: "\f071";
-}
-.fa-plane:before {
- content: "\f072";
-}
-.fa-calendar:before {
- content: "\f073";
-}
-.fa-random:before {
- content: "\f074";
-}
-.fa-comment:before {
- content: "\f075";
-}
-.fa-magnet:before {
- content: "\f076";
-}
-.fa-chevron-up:before {
- content: "\f077";
-}
-.fa-chevron-down:before {
- content: "\f078";
-}
-.fa-retweet:before {
- content: "\f079";
-}
-.fa-shopping-cart:before {
- content: "\f07a";
-}
-.fa-folder:before {
- content: "\f07b";
-}
-.fa-folder-open:before {
- content: "\f07c";
-}
-.fa-arrows-v:before {
- content: "\f07d";
-}
-.fa-arrows-h:before {
- content: "\f07e";
-}
-.fa-bar-chart-o:before,
-.fa-bar-chart:before {
- content: "\f080";
-}
-.fa-twitter-square:before {
- content: "\f081";
-}
-.fa-facebook-square:before {
- content: "\f082";
-}
-.fa-camera-retro:before {
- content: "\f083";
-}
-.fa-key:before {
- content: "\f084";
-}
-.fa-gears:before,
-.fa-cogs:before {
- content: "\f085";
-}
-.fa-comments:before {
- content: "\f086";
-}
-.fa-thumbs-o-up:before {
- content: "\f087";
-}
-.fa-thumbs-o-down:before {
- content: "\f088";
-}
-.fa-star-half:before {
- content: "\f089";
-}
-.fa-heart-o:before {
- content: "\f08a";
-}
-.fa-sign-out:before {
- content: "\f08b";
-}
-.fa-linkedin-square:before {
- content: "\f08c";
-}
-.fa-thumb-tack:before {
- content: "\f08d";
-}
-.fa-external-link:before {
- content: "\f08e";
-}
-.fa-sign-in:before {
- content: "\f090";
-}
-.fa-trophy:before {
- content: "\f091";
-}
-.fa-github-square:before {
- content: "\f092";
-}
-.fa-upload:before {
- content: "\f093";
-}
-.fa-lemon-o:before {
- content: "\f094";
-}
-.fa-phone:before {
- content: "\f095";
-}
-.fa-square-o:before {
- content: "\f096";
-}
-.fa-bookmark-o:before {
- content: "\f097";
-}
-.fa-phone-square:before {
- content: "\f098";
-}
-.fa-twitter:before {
- content: "\f099";
-}
-.fa-facebook:before {
- content: "\f09a";
-}
-.fa-github:before {
- content: "\f09b";
-}
-.fa-unlock:before {
- content: "\f09c";
-}
-.fa-credit-card:before {
- content: "\f09d";
-}
-.fa-rss:before {
- content: "\f09e";
-}
-.fa-hdd-o:before {
- content: "\f0a0";
-}
-.fa-bullhorn:before {
- content: "\f0a1";
-}
-.fa-bell:before {
- content: "\f0f3";
-}
-.fa-certificate:before {
- content: "\f0a3";
-}
-.fa-hand-o-right:before {
- content: "\f0a4";
-}
-.fa-hand-o-left:before {
- content: "\f0a5";
-}
-.fa-hand-o-up:before {
- content: "\f0a6";
-}
-.fa-hand-o-down:before {
- content: "\f0a7";
-}
-.fa-arrow-circle-left:before {
- content: "\f0a8";
-}
-.fa-arrow-circle-right:before {
- content: "\f0a9";
-}
-.fa-arrow-circle-up:before {
- content: "\f0aa";
-}
-.fa-arrow-circle-down:before {
- content: "\f0ab";
-}
-.fa-globe:before {
- content: "\f0ac";
-}
-.fa-wrench:before {
- content: "\f0ad";
-}
-.fa-tasks:before {
- content: "\f0ae";
-}
-.fa-filter:before {
- content: "\f0b0";
-}
-.fa-briefcase:before {
- content: "\f0b1";
-}
-.fa-arrows-alt:before {
- content: "\f0b2";
-}
-.fa-group:before,
-.fa-users:before {
- content: "\f0c0";
-}
-.fa-chain:before,
-.fa-link:before {
- content: "\f0c1";
-}
-.fa-cloud:before {
- content: "\f0c2";
-}
-.fa-flask:before {
- content: "\f0c3";
-}
-.fa-cut:before,
-.fa-scissors:before {
- content: "\f0c4";
-}
-.fa-copy:before,
-.fa-files-o:before {
- content: "\f0c5";
-}
-.fa-paperclip:before {
- content: "\f0c6";
-}
-.fa-save:before,
-.fa-floppy-o:before {
- content: "\f0c7";
-}
-.fa-square:before {
- content: "\f0c8";
-}
-.fa-navicon:before,
-.fa-reorder:before,
-.fa-bars:before {
- content: "\f0c9";
-}
-.fa-list-ul:before {
- content: "\f0ca";
-}
-.fa-list-ol:before {
- content: "\f0cb";
-}
-.fa-strikethrough:before {
- content: "\f0cc";
-}
-.fa-underline:before {
- content: "\f0cd";
-}
-.fa-table:before {
- content: "\f0ce";
-}
-.fa-magic:before {
- content: "\f0d0";
-}
-.fa-truck:before {
- content: "\f0d1";
-}
-.fa-pinterest:before {
- content: "\f0d2";
-}
-.fa-pinterest-square:before {
- content: "\f0d3";
-}
-.fa-google-plus-square:before {
- content: "\f0d4";
-}
-.fa-google-plus:before {
- content: "\f0d5";
-}
-.fa-money:before {
- content: "\f0d6";
-}
-.fa-caret-down:before {
- content: "\f0d7";
-}
-.fa-caret-up:before {
- content: "\f0d8";
-}
-.fa-caret-left:before {
- content: "\f0d9";
-}
-.fa-caret-right:before {
- content: "\f0da";
-}
-.fa-columns:before {
- content: "\f0db";
-}
-.fa-unsorted:before,
-.fa-sort:before {
- content: "\f0dc";
-}
-.fa-sort-down:before,
-.fa-sort-desc:before {
- content: "\f0dd";
-}
-.fa-sort-up:before,
-.fa-sort-asc:before {
- content: "\f0de";
-}
-.fa-envelope:before {
- content: "\f0e0";
-}
-.fa-linkedin:before {
- content: "\f0e1";
-}
-.fa-rotate-left:before,
-.fa-undo:before {
- content: "\f0e2";
-}
-.fa-legal:before,
-.fa-gavel:before {
- content: "\f0e3";
-}
-.fa-dashboard:before,
-.fa-tachometer:before {
- content: "\f0e4";
-}
-.fa-comment-o:before {
- content: "\f0e5";
-}
-.fa-comments-o:before {
- content: "\f0e6";
-}
-.fa-flash:before,
-.fa-bolt:before {
- content: "\f0e7";
-}
-.fa-sitemap:before {
- content: "\f0e8";
-}
-.fa-umbrella:before {
- content: "\f0e9";
-}
-.fa-paste:before,
-.fa-clipboard:before {
- content: "\f0ea";
-}
-.fa-lightbulb-o:before {
- content: "\f0eb";
-}
-.fa-exchange:before {
- content: "\f0ec";
-}
-.fa-cloud-download:before {
- content: "\f0ed";
-}
-.fa-cloud-upload:before {
- content: "\f0ee";
-}
-.fa-user-md:before {
- content: "\f0f0";
-}
-.fa-stethoscope:before {
- content: "\f0f1";
-}
-.fa-suitcase:before {
- content: "\f0f2";
-}
-.fa-bell-o:before {
- content: "\f0a2";
-}
-.fa-coffee:before {
- content: "\f0f4";
-}
-.fa-cutlery:before {
- content: "\f0f5";
-}
-.fa-file-text-o:before {
- content: "\f0f6";
-}
-.fa-building-o:before {
- content: "\f0f7";
-}
-.fa-hospital-o:before {
- content: "\f0f8";
-}
-.fa-ambulance:before {
- content: "\f0f9";
-}
-.fa-medkit:before {
- content: "\f0fa";
-}
-.fa-fighter-jet:before {
- content: "\f0fb";
-}
-.fa-beer:before {
- content: "\f0fc";
-}
-.fa-h-square:before {
- content: "\f0fd";
-}
-.fa-plus-square:before {
- content: "\f0fe";
-}
-.fa-angle-double-left:before {
- content: "\f100";
-}
-.fa-angle-double-right:before {
- content: "\f101";
-}
-.fa-angle-double-up:before {
- content: "\f102";
-}
-.fa-angle-double-down:before {
- content: "\f103";
-}
-.fa-angle-left:before {
- content: "\f104";
-}
-.fa-angle-right:before {
- content: "\f105";
-}
-.fa-angle-up:before {
- content: "\f106";
-}
-.fa-angle-down:before {
- content: "\f107";
-}
-.fa-desktop:before {
- content: "\f108";
-}
-.fa-laptop:before {
- content: "\f109";
-}
-.fa-tablet:before {
- content: "\f10a";
-}
-.fa-mobile-phone:before,
-.fa-mobile:before {
- content: "\f10b";
-}
-.fa-circle-o:before {
- content: "\f10c";
-}
-.fa-quote-left:before {
- content: "\f10d";
-}
-.fa-quote-right:before {
- content: "\f10e";
-}
-.fa-spinner:before {
- content: "\f110";
-}
-.fa-circle:before {
- content: "\f111";
-}
-.fa-mail-reply:before,
-.fa-reply:before {
- content: "\f112";
-}
-.fa-github-alt:before {
- content: "\f113";
-}
-.fa-folder-o:before {
- content: "\f114";
-}
-.fa-folder-open-o:before {
- content: "\f115";
-}
-.fa-smile-o:before {
- content: "\f118";
-}
-.fa-frown-o:before {
- content: "\f119";
-}
-.fa-meh-o:before {
- content: "\f11a";
-}
-.fa-gamepad:before {
- content: "\f11b";
-}
-.fa-keyboard-o:before {
- content: "\f11c";
-}
-.fa-flag-o:before {
- content: "\f11d";
-}
-.fa-flag-checkered:before {
- content: "\f11e";
-}
-.fa-terminal:before {
- content: "\f120";
-}
-.fa-code:before {
- content: "\f121";
-}
-.fa-mail-reply-all:before,
-.fa-reply-all:before {
- content: "\f122";
-}
-.fa-star-half-empty:before,
-.fa-star-half-full:before,
-.fa-star-half-o:before {
- content: "\f123";
-}
-.fa-location-arrow:before {
- content: "\f124";
-}
-.fa-crop:before {
- content: "\f125";
-}
-.fa-code-fork:before {
- content: "\f126";
-}
-.fa-unlink:before,
-.fa-chain-broken:before {
- content: "\f127";
-}
-.fa-question:before {
- content: "\f128";
-}
-.fa-info:before {
- content: "\f129";
-}
-.fa-exclamation:before {
- content: "\f12a";
-}
-.fa-superscript:before {
- content: "\f12b";
-}
-.fa-subscript:before {
- content: "\f12c";
-}
-.fa-eraser:before {
- content: "\f12d";
-}
-.fa-puzzle-piece:before {
- content: "\f12e";
-}
-.fa-microphone:before {
- content: "\f130";
-}
-.fa-microphone-slash:before {
- content: "\f131";
-}
-.fa-shield:before {
- content: "\f132";
-}
-.fa-calendar-o:before {
- content: "\f133";
-}
-.fa-fire-extinguisher:before {
- content: "\f134";
-}
-.fa-rocket:before {
- content: "\f135";
-}
-.fa-maxcdn:before {
- content: "\f136";
-}
-.fa-chevron-circle-left:before {
- content: "\f137";
-}
-.fa-chevron-circle-right:before {
- content: "\f138";
-}
-.fa-chevron-circle-up:before {
- content: "\f139";
-}
-.fa-chevron-circle-down:before {
- content: "\f13a";
-}
-.fa-html5:before {
- content: "\f13b";
-}
-.fa-css3:before {
- content: "\f13c";
-}
-.fa-anchor:before {
- content: "\f13d";
-}
-.fa-unlock-alt:before {
- content: "\f13e";
-}
-.fa-bullseye:before {
- content: "\f140";
-}
-.fa-ellipsis-h:before {
- content: "\f141";
-}
-.fa-ellipsis-v:before {
- content: "\f142";
-}
-.fa-rss-square:before {
- content: "\f143";
-}
-.fa-play-circle:before {
- content: "\f144";
-}
-.fa-ticket:before {
- content: "\f145";
-}
-.fa-minus-square:before {
- content: "\f146";
-}
-.fa-minus-square-o:before {
- content: "\f147";
-}
-.fa-level-up:before {
- content: "\f148";
-}
-.fa-level-down:before {
- content: "\f149";
-}
-.fa-check-square:before {
- content: "\f14a";
-}
-.fa-pencil-square:before {
- content: "\f14b";
-}
-.fa-external-link-square:before {
- content: "\f14c";
-}
-.fa-share-square:before {
- content: "\f14d";
-}
-.fa-compass:before {
- content: "\f14e";
-}
-.fa-toggle-down:before,
-.fa-caret-square-o-down:before {
- content: "\f150";
-}
-.fa-toggle-up:before,
-.fa-caret-square-o-up:before {
- content: "\f151";
-}
-.fa-toggle-right:before,
-.fa-caret-square-o-right:before {
- content: "\f152";
-}
-.fa-euro:before,
-.fa-eur:before {
- content: "\f153";
-}
-.fa-gbp:before {
- content: "\f154";
-}
-.fa-dollar:before,
-.fa-usd:before {
- content: "\f155";
-}
-.fa-rupee:before,
-.fa-inr:before {
- content: "\f156";
-}
-.fa-cny:before,
-.fa-rmb:before,
-.fa-yen:before,
-.fa-jpy:before {
- content: "\f157";
-}
-.fa-ruble:before,
-.fa-rouble:before,
-.fa-rub:before {
- content: "\f158";
-}
-.fa-won:before,
-.fa-krw:before {
- content: "\f159";
-}
-.fa-bitcoin:before,
-.fa-btc:before {
- content: "\f15a";
-}
-.fa-file:before {
- content: "\f15b";
-}
-.fa-file-text:before {
- content: "\f15c";
-}
-.fa-sort-alpha-asc:before {
- content: "\f15d";
-}
-.fa-sort-alpha-desc:before {
- content: "\f15e";
-}
-.fa-sort-amount-asc:before {
- content: "\f160";
-}
-.fa-sort-amount-desc:before {
- content: "\f161";
-}
-.fa-sort-numeric-asc:before {
- content: "\f162";
-}
-.fa-sort-numeric-desc:before {
- content: "\f163";
-}
-.fa-thumbs-up:before {
- content: "\f164";
-}
-.fa-thumbs-down:before {
- content: "\f165";
-}
-.fa-youtube-square:before {
- content: "\f166";
-}
-.fa-youtube:before {
- content: "\f167";
-}
-.fa-xing:before {
- content: "\f168";
-}
-.fa-xing-square:before {
- content: "\f169";
-}
-.fa-youtube-play:before {
- content: "\f16a";
-}
-.fa-dropbox:before {
- content: "\f16b";
-}
-.fa-stack-overflow:before {
- content: "\f16c";
-}
-.fa-instagram:before {
- content: "\f16d";
-}
-.fa-flickr:before {
- content: "\f16e";
-}
-.fa-adn:before {
- content: "\f170";
-}
-.fa-bitbucket:before {
- content: "\f171";
-}
-.fa-bitbucket-square:before {
- content: "\f172";
-}
-.fa-tumblr:before {
- content: "\f173";
-}
-.fa-tumblr-square:before {
- content: "\f174";
-}
-.fa-long-arrow-down:before {
- content: "\f175";
-}
-.fa-long-arrow-up:before {
- content: "\f176";
-}
-.fa-long-arrow-left:before {
- content: "\f177";
-}
-.fa-long-arrow-right:before {
- content: "\f178";
-}
-.fa-apple:before {
- content: "\f179";
-}
-.fa-windows:before {
- content: "\f17a";
-}
-.fa-android:before {
- content: "\f17b";
-}
-.fa-linux:before {
- content: "\f17c";
-}
-.fa-dribbble:before {
- content: "\f17d";
-}
-.fa-skype:before {
- content: "\f17e";
-}
-.fa-foursquare:before {
- content: "\f180";
-}
-.fa-trello:before {
- content: "\f181";
-}
-.fa-female:before {
- content: "\f182";
-}
-.fa-male:before {
- content: "\f183";
-}
-.fa-gittip:before {
- content: "\f184";
-}
-.fa-sun-o:before {
- content: "\f185";
-}
-.fa-moon-o:before {
- content: "\f186";
-}
-.fa-archive:before {
- content: "\f187";
-}
-.fa-bug:before {
- content: "\f188";
-}
-.fa-vk:before {
- content: "\f189";
-}
-.fa-weibo:before {
- content: "\f18a";
-}
-.fa-renren:before {
- content: "\f18b";
-}
-.fa-pagelines:before {
- content: "\f18c";
-}
-.fa-stack-exchange:before {
- content: "\f18d";
-}
-.fa-arrow-circle-o-right:before {
- content: "\f18e";
-}
-.fa-arrow-circle-o-left:before {
- content: "\f190";
-}
-.fa-toggle-left:before,
-.fa-caret-square-o-left:before {
- content: "\f191";
-}
-.fa-dot-circle-o:before {
- content: "\f192";
-}
-.fa-wheelchair:before {
- content: "\f193";
-}
-.fa-vimeo-square:before {
- content: "\f194";
-}
-.fa-turkish-lira:before,
-.fa-try:before {
- content: "\f195";
-}
-.fa-plus-square-o:before {
- content: "\f196";
-}
-.fa-space-shuttle:before {
- content: "\f197";
-}
-.fa-slack:before {
- content: "\f198";
-}
-.fa-envelope-square:before {
- content: "\f199";
-}
-.fa-wordpress:before {
- content: "\f19a";
-}
-.fa-openid:before {
- content: "\f19b";
-}
-.fa-institution:before,
-.fa-bank:before,
-.fa-university:before {
- content: "\f19c";
-}
-.fa-mortar-board:before,
-.fa-graduation-cap:before {
- content: "\f19d";
-}
-.fa-yahoo:before {
- content: "\f19e";
-}
-.fa-google:before {
- content: "\f1a0";
-}
-.fa-reddit:before {
- content: "\f1a1";
-}
-.fa-reddit-square:before {
- content: "\f1a2";
-}
-.fa-stumbleupon-circle:before {
- content: "\f1a3";
-}
-.fa-stumbleupon:before {
- content: "\f1a4";
-}
-.fa-delicious:before {
- content: "\f1a5";
-}
-.fa-digg:before {
- content: "\f1a6";
-}
-.fa-pied-piper:before {
- content: "\f1a7";
-}
-.fa-pied-piper-alt:before {
- content: "\f1a8";
-}
-.fa-drupal:before {
- content: "\f1a9";
-}
-.fa-joomla:before {
- content: "\f1aa";
-}
-.fa-language:before {
- content: "\f1ab";
-}
-.fa-fax:before {
- content: "\f1ac";
-}
-.fa-building:before {
- content: "\f1ad";
-}
-.fa-child:before {
- content: "\f1ae";
-}
-.fa-paw:before {
- content: "\f1b0";
-}
-.fa-spoon:before {
- content: "\f1b1";
-}
-.fa-cube:before {
- content: "\f1b2";
-}
-.fa-cubes:before {
- content: "\f1b3";
-}
-.fa-behance:before {
- content: "\f1b4";
-}
-.fa-behance-square:before {
- content: "\f1b5";
-}
-.fa-steam:before {
- content: "\f1b6";
-}
-.fa-steam-square:before {
- content: "\f1b7";
-}
-.fa-recycle:before {
- content: "\f1b8";
-}
-.fa-automobile:before,
-.fa-car:before {
- content: "\f1b9";
-}
-.fa-cab:before,
-.fa-taxi:before {
- content: "\f1ba";
-}
-.fa-tree:before {
- content: "\f1bb";
-}
-.fa-spotify:before {
- content: "\f1bc";
-}
-.fa-deviantart:before {
- content: "\f1bd";
-}
-.fa-soundcloud:before {
- content: "\f1be";
-}
-.fa-database:before {
- content: "\f1c0";
-}
-.fa-file-pdf-o:before {
- content: "\f1c1";
-}
-.fa-file-word-o:before {
- content: "\f1c2";
-}
-.fa-file-excel-o:before {
- content: "\f1c3";
-}
-.fa-file-powerpoint-o:before {
- content: "\f1c4";
-}
-.fa-file-photo-o:before,
-.fa-file-picture-o:before,
-.fa-file-image-o:before {
- content: "\f1c5";
-}
-.fa-file-zip-o:before,
-.fa-file-archive-o:before {
- content: "\f1c6";
-}
-.fa-file-sound-o:before,
-.fa-file-audio-o:before {
- content: "\f1c7";
-}
-.fa-file-movie-o:before,
-.fa-file-video-o:before {
- content: "\f1c8";
-}
-.fa-file-code-o:before {
- content: "\f1c9";
-}
-.fa-vine:before {
- content: "\f1ca";
-}
-.fa-codepen:before {
- content: "\f1cb";
-}
-.fa-jsfiddle:before {
- content: "\f1cc";
-}
-.fa-life-bouy:before,
-.fa-life-buoy:before,
-.fa-life-saver:before,
-.fa-support:before,
-.fa-life-ring:before {
- content: "\f1cd";
-}
-.fa-circle-o-notch:before {
- content: "\f1ce";
-}
-.fa-ra:before,
-.fa-rebel:before {
- content: "\f1d0";
-}
-.fa-ge:before,
-.fa-empire:before {
- content: "\f1d1";
-}
-.fa-git-square:before {
- content: "\f1d2";
-}
-.fa-git:before {
- content: "\f1d3";
-}
-.fa-hacker-news:before {
- content: "\f1d4";
-}
-.fa-tencent-weibo:before {
- content: "\f1d5";
-}
-.fa-qq:before {
- content: "\f1d6";
-}
-.fa-wechat:before,
-.fa-weixin:before {
- content: "\f1d7";
-}
-.fa-send:before,
-.fa-paper-plane:before {
- content: "\f1d8";
-}
-.fa-send-o:before,
-.fa-paper-plane-o:before {
- content: "\f1d9";
-}
-.fa-history:before {
- content: "\f1da";
-}
-.fa-circle-thin:before {
- content: "\f1db";
-}
-.fa-header:before {
- content: "\f1dc";
-}
-.fa-paragraph:before {
- content: "\f1dd";
-}
-.fa-sliders:before {
- content: "\f1de";
-}
-.fa-share-alt:before {
- content: "\f1e0";
-}
-.fa-share-alt-square:before {
- content: "\f1e1";
-}
-.fa-bomb:before {
- content: "\f1e2";
-}
-.fa-soccer-ball-o:before,
-.fa-futbol-o:before {
- content: "\f1e3";
-}
-.fa-tty:before {
- content: "\f1e4";
-}
-.fa-binoculars:before {
- content: "\f1e5";
-}
-.fa-plug:before {
- content: "\f1e6";
-}
-.fa-slideshare:before {
- content: "\f1e7";
-}
-.fa-twitch:before {
- content: "\f1e8";
-}
-.fa-yelp:before {
- content: "\f1e9";
-}
-.fa-newspaper-o:before {
- content: "\f1ea";
-}
-.fa-wifi:before {
- content: "\f1eb";
-}
-.fa-calculator:before {
- content: "\f1ec";
-}
-.fa-paypal:before {
- content: "\f1ed";
-}
-.fa-google-wallet:before {
- content: "\f1ee";
-}
-.fa-cc-visa:before {
- content: "\f1f0";
-}
-.fa-cc-mastercard:before {
- content: "\f1f1";
-}
-.fa-cc-discover:before {
- content: "\f1f2";
-}
-.fa-cc-amex:before {
- content: "\f1f3";
-}
-.fa-cc-paypal:before {
- content: "\f1f4";
-}
-.fa-cc-stripe:before {
- content: "\f1f5";
-}
-.fa-bell-slash:before {
- content: "\f1f6";
-}
-.fa-bell-slash-o:before {
- content: "\f1f7";
-}
-.fa-trash:before {
- content: "\f1f8";
-}
-.fa-copyright:before {
- content: "\f1f9";
-}
-.fa-at:before {
- content: "\f1fa";
-}
-.fa-eyedropper:before {
- content: "\f1fb";
-}
-.fa-paint-brush:before {
- content: "\f1fc";
-}
-.fa-birthday-cake:before {
- content: "\f1fd";
-}
-.fa-area-chart:before {
- content: "\f1fe";
-}
-.fa-pie-chart:before {
- content: "\f200";
-}
-.fa-line-chart:before {
- content: "\f201";
-}
-.fa-lastfm:before {
- content: "\f202";
-}
-.fa-lastfm-square:before {
- content: "\f203";
-}
-.fa-toggle-off:before {
- content: "\f204";
-}
-.fa-toggle-on:before {
- content: "\f205";
-}
-.fa-bicycle:before {
- content: "\f206";
-}
-.fa-bus:before {
- content: "\f207";
-}
-.fa-ioxhost:before {
- content: "\f208";
-}
-.fa-angellist:before {
- content: "\f209";
-}
-.fa-cc:before {
- content: "\f20a";
-}
-.fa-shekel:before,
-.fa-sheqel:before,
-.fa-ils:before {
- content: "\f20b";
-}
-.fa-meanpath:before {
- content: "\f20c";
-}
diff --git a/_private/scss/admin.scss b/_private/scss/admin.scss
deleted file mode 100644
index 82f253fe14..0000000000
--- a/_private/scss/admin.scss
+++ /dev/null
@@ -1,66 +0,0 @@
-//
-// Main Admin CSS File
-//
-
-// grid layout for breakpoints
-@import "admin/partials/grid";
-
-// variables
-@import "admin/partials/variables";
-
-// forms
-@import "admin/modules/forms";
-
-// course outline widget
-@import "admin/modules/course-outline";
-
-// voucher
-@import "admin/modules/voucher";
-
-// widgets
-@import "admin/modules/widgets";
-
-// icons
-@import "admin/modules/icons";
-
-// icons
-@import "admin/modules/mb-tabs";
-
-// icons
-@import "admin/modules/top-modal";
-
-// Base (mobile)
-@import "admin/breakpoints/base";
-
-// Larger mobile devices
-@media only screen and (min-width: 481px) {
- @import "admin/breakpoints/481up";
-}
-
-// Tablets and smaller laptops
-@media only screen and (min-width: 768px) {
- @import "admin/breakpoints/768up";
-}
-
-// Desktops
-@media only screen and (min-width: 1030px) {
- @import "admin/breakpoints/1030up";
-}
-
-// Larger Monitors and TVs
-@media only screen and (min-width: 1240px) {
- @import "admin/breakpoints/1240up";
-}
-
-// Retina Screens
-@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
- only screen and (min--moz-device-pixel-ratio: 1.5),
- only screen and (min-device-pixel-ratio: 1.5) {
- @import "admin/breakpoints/2x";
-}
-
-@import "admin/main";
-@import "admin/tabs";
-@import "admin/fonts";
-
-@import "_includes/vendor/_font-awesome";
\ No newline at end of file
diff --git a/_private/scss/admin/_fonts.scss b/_private/scss/admin/_fonts.scss
deleted file mode 100644
index 5b3d1bab78..0000000000
--- a/_private/scss/admin/_fonts.scss
+++ /dev/null
@@ -1,14 +0,0 @@
-h1.llms-page-header {
- color: #999;
- font-weight: 500;
- letter-spacing: 2px;
-}
-
-#llms-options-page-contents {
- h2 {
- color: #999;
- font-weight: 500;
- letter-spacing: 2px;
- border-bottom: 1px solid #999;
- }
-}
\ No newline at end of file
diff --git a/_private/scss/admin/_main.scss b/_private/scss/admin/_main.scss
deleted file mode 100644
index 485fb878b4..0000000000
--- a/_private/scss/admin/_main.scss
+++ /dev/null
@@ -1,408 +0,0 @@
-.dad-list, .dad-list .title {
- border: 1px solid #dfdfdf;
-}
-.dad-list tr {
- cursor: move;
-}
-.newTasks{
- padding:3px;
- border:1px solid #888;
- -moz-border-radius:3px;
- -webkit-border-radius: 3px;
- border-radius:3px;
-}
-.widefat th, .widefat td {
-overflow: visible;
-}
-
-.title {
- padding: 10px;
- line-height: 1;
- border-color: gray;
- background-color: #f1f1f1;
- border: 1px solid #f1f1f1;
- margin: 0;
- position: relative;
-}
-.title .order {
- margin-right: 10px;
- font-weight: bold;
-}
-.chosen-select {
- width: 300px;
-}
-.myicon:before {
- content: "\2605";
- display: inline-block;
- -webkit-font-smoothing: antialiased;
- font: normal 20px/1 'dashicons';
- vertical-align: top;
-}
-i.section-dismiss {
- font-size: 2em;
- position: absolute;
- right: 16px;
- top: 12px;
- color: rgba(88, 88, 91, 0.6);
- cursor: pointer;
-}
-i.section-dismiss:hover {
- cursor: pointer;
- color: #d54e21;
-}
-.section-content {
- padding: 10px;
- line-height: 1;
- border: 1px solid #dfdfdf;
- position: relative;
-}
-.section-content:hover {
- background-color: #f9f9f9;
-}
-.section {
- margin-top: 20px;
- margin-bottom: 20px;
-}
-#syllabus {
- position: relative;
- min-height: 100px;
-}
-#syllabus .add-lesson {
- margin: 10px 0 16px 10px;
-}
-.deleteBtn {
- color: rgba(88, 88, 91, 0.6);
- font-size: 2em;
- cursor: pointer;
- margin-top: -6px;
-}
-.deleteBtn:hover {
- cursor: pointer;
- color: #d54e21;
-}
-.select, .input {
- width: 300px;
-}
-#post_course_difficulty {
- min-width: 200px;
-}
-#_video-embed, #_audio-embed {
- width: 100%;
-}
-.clear {
- clear: both;
- width: 100%;
-}
-.llms-large-text {
- min-height: 100px;
-}
-#spinner {
- width: 20px;
- height: 20px;
- margin-left: 4px;
- margin-top: 5px;
- display: inline-block;
-}
-table.dad-list tr th:nth-child(2) {
- width: 50px;
-}
-table.dad-list tr td:nth-child(2) {
- text-align: right;
- padding-right: 16px;
- padding-top: 14px;
-}
-.meta-box-sortables .course-section select {
- width:75%;
-}
-#addNewSection {
- margin-bottom: 16px;
-}
-
-.courses {
- background: #000;
-}
-
-.llms_certificate_default_image, .llms_certificate_image {
- width: 300px;
-}
-
-.llms_achievement_default_image, .llms_achievement_image {
- width: 120px;
-}
-.llms-access-level {
- width: 100%;
- margin-bottom: 6px;
-}
-.llms-access-levels {
- min-height: 42px;
- overflow: auto;
- padding: .9em;
- border: 1px solid #dfdfdf;
- background-color: #fdfdfd;
-}
-.llms_access_options {
- padding: 10px;
-}
-.llms-access-option {
- padding:10px 10px 10px 13px;
-}
-.llms-access-level:last-child {
- margin-bottom: 0;
-}
-.llms-access-levels-title {
- padding-bottom: 10px;
- display: block;
- width: 100%;
- font-weight: bold;
-}
-.toplevel_page_lifterlms img {
- height: 18px;
- width: 18px;
-}
-.llms-lesson-list {
- margin: 0;
- ul {
- margin-left: 10px;
- li {
- margin-top: 6px;
- a {
- color: $color-blue;
- }
- }
- }
-}
-.llms-lesson-list a {
- text-decoration: none;
-}
-.llms-lesson-list span {
- margin-left: 10px;
-}
-.course-section {
-}
-select[disabled] {
- color:#000;
- border: transparent;
- background: none;
--moz-appearance: checkbox-container;
- -webkit-appearance: none;
- -ms-appearance: none;
- appearance: none;
- text-indent: 1px;
- text-overflow: '';
- box-shadow: none;
- background: none;
- margin-top: -4px;
-}
-select[disabled]::-ms-expand {
- display: none;
-}
-
-.section-placeholder {
- height: 200px;
- width: 100%;
-}
-.sortable-placeholder {
- border-left: 2px solid #4999DA;
- margin: 0 0 0.75rem 0;
- position: relative;
- z-index: 6;
- visibility: visible;
- background: #f4f9fb;
-}
-#syllabus .placeholder {
- height: 46px;
-
- border:10px solid #4999DA;
- background: #f4f9fb;
- //margin: 0 0 0.75rem 0;
- //position: relative;
- //z-index: 6;
- visibility: visible;
-}
-/*we really need to create a helper function to style the dragged element but for v1 I'm not worried about it*/
-.ui-sortable-helper {
- background-color: #fff;
- border: 1px solid #ccc;
-}
-// .placeholder {
-// background: #f3f3f3;
-// visibility: visible;
-// }
-.list_item td{
- position: relative;
-}
-
-.course-section .title .llms-fa-move-lesson {
- position: absolute;
- font-size: 20px;
- right: 60px;
- color: rgba(88, 88, 91, 0.6);
- top: 14px;
- cursor: move;
-}
-.course-section .title .llms-fa-edit-lesson {
- position: absolute;
- font-size: 20px;
- right: 104px;
- color: rgba(88, 88, 91, 0.6);
- top: 14px;
- cursor: pointer;
-}
-
-.course-section .title .llms-fa-edit-lesson:hover {
- color: #009af7;
-}
-.course-section .title .llms-fa-move-lesson:hover {
- color: #009af7;
-}
-.course-section .title .llms-fa-move-lesson:active {
- color: #009af7;
-}
-.course-section .title .llms-fa-edit-lesson:active {
- color: #009af7;
-}
-
-
-tbody tr td .llms-fa-move-lesson {
- position: absolute;
- font-size: 20px;
- right: 60px;
- color: rgba(88, 88, 91, 0.6);
- top: 10px;
- cursor: move;
-}
-tbody tr td .llms-fa-move-lesson:hover {
- color: #009af7;
-}
-tbody tr td .llms-fa-move-lesson:active {
- color: #009af7;
-}
-tbody tr td .llms-fa-edit-lesson {
- position: absolute;
- font-size: 20px;
- right: 104px;
- color: rgba(88, 88, 91, 0.6);
- top: 11px;
- cursor: pointer;
-}
-tbody tr td .llms-fa-edit:hover {
- color: #009af7;
- cursor: pointer;
-}
-tbody tr td .llms-fa-edit:active {
- color: #009af7;
-}
-
-tbody tr td .llms-fa-move {
- position: absolute;
- font-size: 20px;
- right: 60px;
- color: rgba(88, 88, 91, 0.6);
- top: 10px;
- cursor: move;
-}
-tbody tr td .llms-fa-move:hover {
- color: #009af7;
-}
-tbody tr td .llms-fa-move:active {
- color: #009af7;
-}
-tbody tr td .llms-fa-edit {
- position: absolute;
- font-size: 20px;
- right: 104px;
- color: rgba(88, 88, 91, 0.6);
- top: 11px;
- cursor: pointer;
-}
-tbody tr td .llms-fa-edit-lesson:hover {
- color: #009af7;
- cursor: pointer;
-}
-tbody tr td .llms-fa-edit-lesson:active {
- color: #009af7;
-}
-
-#llms-single-options {
- position: relative;
- min-height: 100px;
- padding: 10px 0;
-}
-#llms-question-container {
- position: relative;
- min-height: 100px;
-}
-.llms-single-options table textarea {
- width: 96%;
- margin: 8px;
-}
-.option-text {
- width: 100%;
- margin-top: 10px;
-}
-.deleteBtn.single-option-delete {
- position: absolute;
- font-size: 2em;
- right: 14px;
- color: rgba(88, 88, 91, 0.6);
- top: 14px;
-}
-.single-option-delete:hover {
- cursor: pointer;
- color: #d54e21;
-}
-td.llms-table-points, th.llms-table-points {
- width: 10%;
- input[type=text] {
- width: 100%;
- }
-}
-td.llms-table-select, th.llms-table-select {
- width: 70%;
- select {
- width: 100%;
- }
-}
-td.llms-table-options {
-}
-.question-select {
- margin-top: 2px;
-}
-.llms-table-select .chosen-container {
- margin-top: 2px;
-}
-// table.dad-list tr th:nth-child(2) {
-// width: 50px;
-// }
-// table.dad-list tr td:nth-child(2) {
-// text-align: right;
-// padding-right: 16px;
-// padding-top: 14px;
-// }
-.llms-meta-select {
- width: 100%;
-}
-
-//these need to go in infusionsoft plugin
-.llmsis_cycle {
- width: 100%;
- float: none;
- margin-top: 10px;
-}
-#llmis-add-new-sub {
- margin-bottom: 20px;
- margin-left: 10px;
-}
-
-.title
-{
- background-color: inherit;
- border: inherit;
-}
-
-
-#lifterlms-course-outline.postbox {
- .inside {
- overflow: visible;
- }
-}
diff --git a/_private/scss/admin/_tabs.scss b/_private/scss/admin/_tabs.scss
deleted file mode 100644
index 62fcc92ceb..0000000000
--- a/_private/scss/admin/_tabs.scss
+++ /dev/null
@@ -1,46 +0,0 @@
-.wrap {
- h2.llms-nav-tab-wrapper {
- background: $color-lightblue;
- //border-radius: 5px;
- padding: 0;
- .llms-nav-tab, .llms-nav-tab-settings {
- background: $color-lightblue;
- border: 0;
- color: #fff;
- margin: 0;
- font-weight: 300;
- padding: 10px 0;
- text-decoration: none;
- font-size: 15px;
- line-height: 24px;
- transition: .8s;
- text-align: center;
-
- &:first-child {
- //border-radius: 5px 0 0 5px;
- }&:hover {
- background: $color-blue;
- }&:active {
- background: $color-darkblue;
- }
- }a {
- letter-spacing: 3px;
- &:hover {
- letter-spacing: 4px;
- }
- }.llms-nav-tab-active {
- background: $color-darkblue;
- }
-
- }
-}
-.llms-button-primary {
- border:none !important;
- text-shadow: none !important;
- border: none !important;
- outline: none !important;
-}
-
-.llms-nav-tab-wrapper .llms-button-primary {
- box-shadow: none !important;
-}
\ No newline at end of file
diff --git a/_private/scss/admin/breakpoints/2x.scss b/_private/scss/admin/breakpoints/2x.scss
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/_private/scss/admin/breakpoints/_1030up.scss b/_private/scss/admin/breakpoints/_1030up.scss
deleted file mode 100644
index 1d336be12f..0000000000
--- a/_private/scss/admin/breakpoints/_1030up.scss
+++ /dev/null
@@ -1,78 +0,0 @@
-/******************************************************************
-
-Desktop Stylsheet
-
-******************************************************************/
-
-//option page tab menu
-.llms-nav-tab {
- display: inline-block;
- width: 33.333%;
-}
-.llms-nav-tab-settings {
- display: inline-block;
- width: 25%;
-}
-
-//select box form wrapper
-#llms-form-wrapper {
- .llms-select {
- display: inline-block;
- width: 47.5%;
- &:first-child {
- margin-right: 5%;
- }
-
- }.llms-filter-options {
- display: inline-block;
- width: 47.5%;
-
- &.date-filter {
- margin-right: 5%;
- }.llms-date-select {
- margin-bottom: 0;
- }
-
- }.llms-date-select {
- width: 47.5%;
-
- &:first-child {
- margin-right: 5%
- }
-
- }
-}
-
-
-.llms-widget-row {
- .llms-widget-1-4 {
- width: 25%;
- display: inline-block;
- box-sizing: border-box;
- padding: 0 5px;
- // &:first-child {
- // padding-left: 0;
- // }
- .llms-widget {
-
- }
- }.llms-widget-1-3 {
- width: 33.3%;
- display: inline-block;
- box-sizing: border-box;
- padding: 0 5px;
- // &:first-child {
- // padding-left: 0;
- // }
- }
- .llms-widget-1-2 {
- width: 50%;
- display: inline-block;
- box-sizing: border-box;
- padding: 0 5px;
- // &:first-child {
- // padding-left: 0;
- // }
- }
-
-}
diff --git a/_private/scss/admin/breakpoints/_1240up.scss b/_private/scss/admin/breakpoints/_1240up.scss
deleted file mode 100644
index 251637a86c..0000000000
--- a/_private/scss/admin/breakpoints/_1240up.scss
+++ /dev/null
@@ -1,10 +0,0 @@
-/******************************************************************
-
-large Monitor Stylsheet
-
-******************************************************************/
-
-.llms-nav-tab-settings {
- display: inline-block;
- width: 12.5%;
-}
\ No newline at end of file
diff --git a/_private/scss/admin/breakpoints/_481up.scss b/_private/scss/admin/breakpoints/_481up.scss
deleted file mode 100644
index 05e7bc2f76..0000000000
--- a/_private/scss/admin/breakpoints/_481up.scss
+++ /dev/null
@@ -1,15 +0,0 @@
-/******************************************************************
-
-Larger Phones
-
-******************************************************************/
-
-//select box form wrapper
-#llms-form-wrapper {
-
- .llms-checkbox {
- width: 33%;
- //text-align: center;
-
- }
-}
diff --git a/_private/scss/admin/breakpoints/_768up.scss b/_private/scss/admin/breakpoints/_768up.scss
deleted file mode 100644
index bd85527c53..0000000000
--- a/_private/scss/admin/breakpoints/_768up.scss
+++ /dev/null
@@ -1,67 +0,0 @@
-/******************************************************************
-
-Tablets and small computers
-
-******************************************************************/
-
-ul.tabs li{
- display: inline-block;
- }
-
-//option page tab menu
-.llms-nav-tab {
- display: inline-block;
- width: 33%;
-}
-.llms-nav-tab-settings {
- display: inline-block;
- width: 25%;
-}
-
-//select box form wrapper
-#llms-form-wrapper {
- .llms-select {
- width: 50%;
- max-width: 500px;
-
- }.llms-filter-options {
- width: 50%;
- //display: inline-block;
- max-width: 500px;
-
- }.llms-date-select {
- width: 47.5%;
-
- &:first-child {
- margin-right: 5%
- }
-
- }
-}
-
-.llms-widget {
- input[type="text"],
- input[type="password"],
- input[type="datetime"],
- input[type="datetime-local"],
- input[type="date"],
- input[type="month"],
- input[type="time"],
- input[type="week"],
- input[type="number"],
- input[type="email"],
- input[type="url"],
- input[type="search"],
- input[type="tel"],
- input[type="color"],
- select,
- textarea, {
- width: 50%;
- }.form-table th {
- width: 140px;
- }
-
-}
-
-
-
diff --git a/_private/scss/admin/breakpoints/_base.scss b/_private/scss/admin/breakpoints/_base.scss
deleted file mode 100644
index 4713040e7a..0000000000
--- a/_private/scss/admin/breakpoints/_base.scss
+++ /dev/null
@@ -1,67 +0,0 @@
-/******************************************************************
-
-Base Mobile
-
-******************************************************************/
-
-
-.llms-nav-tab {
- display: block;
- width: 100%;
-}
-
-.llms-nav-tab-settings {
- display: block;
- width: 100%;
-}
-
-//select box form wrapper
-#llms-form-wrapper {
- .llms-select {
- width: 100%;
- margin-bottom: 20px;
-
- }.llms-checkbox {
- display: inline-block;
- width: 100%;
- text-align: left;
-
- }.llms-filter-options {
- width: 100%;
- //margin-bottom: 20px;
-
- }.llms-date-select {
- width: 100%;
- display: inline-block;
- margin-bottom: 20px;
- input[type="text"] {
- width: 100%;
- }
-
- }.llms-search-button {
- //display: inline-block;
- //width: 30%;
- #llms-search-button {
-
- //float: right;
- }
-
- }
-
-}
-
-.llms-widget-full {
- &.top {
- margin-top: 20px;
- }
-}
-.llms-widget {
- .form-table td {
- padding: 15px 0;
- }
-}
-
-ul.tabs li{
- display: block;
- }
-
diff --git a/_private/scss/admin/modules/_course-outline.scss b/_private/scss/admin/modules/_course-outline.scss
deleted file mode 100644
index bfb7938803..0000000000
--- a/_private/scss/admin/modules/_course-outline.scss
+++ /dev/null
@@ -1,353 +0,0 @@
-/******************************************************************
-
-Course Outline
-
-******************************************************************/
-#llms-course-outline {
- box-sizing: border-box;
- width: 100%;
-
- #llms-ouline-header {
- box-sizing: border-box;
- background: #fafafa;
- border: 1px solid #e1e1e1;
- width: 100%;
- padding: 16px 24px;
- position: relative;
- border-radius: 4px 4px 0 0;
-
- .llms-button-primary {
- padding: 8px 18px;
- margin-top: 2px;
-
- }
-
- .outline-body {
- width: 100%;
- padding: 20px;
- }
-
- }
-}
-
-.llms-button-primary.clicked {
- background: $color-darkblue;
-}
-
-.clear-fix:after
-{
- content: ".";
- display: block;
- clear: both;
- visibility: hidden;
- line-height: 0;
- height: 0;
-}
-
-.clear-fix
-{
- zoom: 1;
-}
-
-h1.outline-title {
- font-size: 16px;
- font-weight: 400;
-
-}
-
-.menu-button {
- position: relative;
- float: right;
- width: auto;
-}
-
-
-#llms-outline-menu {
- visibility:hidden;
- transition: opacity 0.3s 0.6s, visibility 0s 0.9s;
- opacity: 0;
- position: absolute;
- left: -84px;
- bottom: 40px;
- z-index: 6;
-}
-
-#llms-outline-menu.fade-in {
- visibility: visible;
- opacity: 1;
- transition: opacity 0.1s 0s, visibility 0s 0s;
- animation: cd-move-in 0.4s;
- animation-fill-mode: forwards;
-}
-@keyframes cd-move-in {
- 0% {
- transform: translateY(2.5vh);
- }
- 65% {
- transform: translateY(-1.5vh);
- }
- 100% {
- transform: translateY(0vh);
- }
-}
-
-
-#triangle {
- border-width: 2px 0 0 2px;
- width: 10px;
- height: 10px;
- -webkit-transform: rotate(228deg);
- -moz-transform: rotate(45deg);
- -o-transform: rotate(45deg);
- z-index: 1;
- background: #313130;
- position: absolute;
- bottom: -5px;
- left: 110px;
- z-index: 1;
-}
-#tooltip_menu {
- background: #313130;
- -webkit-border-radius: .5em;
- -moz-border-radius: .5em;
- border-radius: .5em;
- width: 200px;
- -webkit-box-shadow: 0px 0px 3px rgba(0,0,0,.5);
- -moz-box-shadow: 0px 0px 3px rgba(0,0,0,.5);
- box-shadow: 0px 0px 3px rgba(0,0,0,.5);
- padding: 2px 16px;
-
-}
-#tooltip_menu a {
- border-bottom: 1px solid #565656;
- z-index: 2;
- padding: 16px 10px;
- margin: 0;
- display: block;
- text-decoration: none;
- color: $color-white;
- font-size: 13px;
- transition: all 0.3s ease-in;
- text-align: left;
-
- &:last-child {
- border-bottom: 0;
- }
-}
-#tooltip_menu a:hover {
- //background: #000;
- color: $color-blue;
- padding-left: 20px;
- //text-shadow: 1px 0px 10px #000;
-
-}
-#tooltip_menu a img {
- position: relative;
- top: 5px;
- border: 0;
-}
-
-.menu-icon {
- color: $color-blue;
-}
-.sortablewrapper {
- display: block;
-}
-#llms_coure_outline_sort {
- padding: 0;
- background: $color-white;
-}
-.outline-body {
- background: $color-white;
-}
-.section-icon, .tree-icon {
- color: #AAACAD;
-}
-.ui-state-default.llms-lesson {
- position: relative;
- padding: 0 10px 10px 27px;
- margin: 0 0 0 6px;
- border: 0;
- background: $color-white;
-}
-.llms-lesson:hover, .llms-section:hover {
- background: #fafafa;
-}
-.ui-state-default.llms-section {
- margin: 0;
- border: 0;
- background: $color-white;
- color: $color-cinder;
-}
-.llms-section {
- position: relative;
- padding: 10px;
-}
-.llms-lesson:before {
- content: "";
- position: absolute;
- top: -23px;
- bottom: 0;
- border-left: 1px #BBBBBB solid;
- left: 0;
- z-index: 10;
-}
-.llms-lesson-order:before {
- content: "";
- position: absolute;
- width: 26px;
- border-bottom: 1px #BBBBBB solid;
- left: -26px;
- top: 20px;
-}
-
-.llms-lesson:last-child:before {
- height: 44px;
-}
-
-.llms-section, .llms-lesson {
- .section-content-wrapper {
- z-index: 5;
- position: relative;
- background: $color-white;
- min-height: 50px;
- }
- .description {
-
- position: relative;
- padding: 10px 0;
- color: $color-cinder;
-
- p {
- margin-bottom: 0;
- color: $color-grey;
- }
- }
- .list-options {
- z-index: 5;
- position: relative;
- //margin-top: 10px;
- }
- .list-lesson-details {
- margin-top: 10px;
- }
- .llms-edit-section-link, .llms-edit-lesson-link, a.llms-edit-lesson-content-link, a.llms-delete-section-link {
- //width: 20px;
- /* height: 30px; */
- background: $color-lightblue;
- display: block;
- padding: 5px;
- float: right;
- color: $color-white !important;
- margin-left: 10px;
- margin-top: 10px;
- transition: ease .3s all;
-
- &:hover {
- background: $color-darkblue;
- }
- .icon.button-icon {
- fill: $color-white;
- }
- }
- a.llms-delete-section-link {
- margin-right: 10px;
- }
-
-}
-
-a.llms-voucher-delete,
-a.llms-delete-section-link,
-a.llms-remove-lesson-link {
- //width: 20px;
- /* height: 30px; */
- display: block;
- padding: 5px;
- background: #e26049;
- float: right;
- color: $color-white !important;
- transition: ease .3s all;
-
- &:hover {
- background: #af3a26;
- }
-
- .icon.button-icon {
- fill: $color-white;
- }
-}
-
-a.llms-delete-section-link,
-a.llms-remove-lesson-link {
- margin-top: 10px;
- margin-left: 10px;
-}
-
-.llms-lesson-tree {
- width: 100%;
- margin: 0;
- min-height: 10px;
-}
-
-/**
- * Tooltip
- */
-.llms-lesson-details {
- float: right;
-}
-
-.tooltip{
- display: inline;
- position: relative;
- margin-right: 10px;
- cursor:default;
-}
-.tooltip:last-child {
- margin-right: 0;
-}
-.tooltip:hover:after{
- background: #313130;
- border-radius: 5px;
- bottom: 26px;
- color: #fff;
- content: attr(title);
- left: -75px;
- padding: 5px 15px;
- position: absolute;
- z-index: 98;
- width: 150px;
-}
-.tooltip:hover:before{
- border: solid;
- border-color: #313130 transparent;
- border-width: 6px 6px 0 6px;
- bottom: 20px;
- content: "";
- left: 30%;
- position: absolute;
- z-index: 99;
-}
-
-.llms-mb-list {
-
- label {
- font-weight: bold;
- width: 100%;
- display: block;
- }
-
- .input-full {
- width: 100%;
- }
-}
-
-/**
- * sortable
- */
-.placeholder {
- border: 1px solid $color-blue;
- border-left: 1px solid #bbb;
- background: $color-lightblue;
- margin-left: 6px;
-}
-
diff --git a/_private/scss/admin/modules/_forms.scss b/_private/scss/admin/modules/_forms.scss
deleted file mode 100644
index d2bd746f3b..0000000000
--- a/_private/scss/admin/modules/_forms.scss
+++ /dev/null
@@ -1,232 +0,0 @@
-/******************************************************************
-
-Form Styles
-
-******************************************************************/
-
-// lifterlms form wrapper
-#llms-form-wrapper {
-
- // setup defaults
- input[type="text"],
- input[type="password"],
- input[type="datetime"],
- input[type="datetime-local"],
- input[type="date"],
- input[type="month"],
- input[type="time"],
- input[type="week"],
- input[type="number"],
- input[type="email"],
- input[type="url"],
- input[type="search"],
- input[type="tel"],
- input[type="color"],
- input[type="checkbox"],
- select,
- textarea,
- .llms-field {
-
- // a focused input (or hovered on)
- &:focus,
- &:active {
-
- } // end hover or focus
- }
-
- // sub wrapper for seach filter form (analytics)
- .llms-search-form-wrapper {
- border-bottom: 1px solid $color-grey;
- margin: 20px 0;
-
- }
- .button-primary {
- border:none !important;
- text-shadow: none !important;
- border: none !important;
- outline: none !important;
- box-shadow: none !important;
- margin: 0 !important;
- color:#fff !important;
- background: $color-blue !important;
- border-radius: 0;
- transition: .5s;
-
- &:hover {
- background: $color-darkblue !important;
-
- }&:active {
- background: $color-lightblue !important;
- }
- }
-
- #llms_analytics_search {
- border:none !important;
- text-shadow: none !important;
- border: none !important;
- outline: none !important;
- box-shadow: none !important;
- margin: 0 !important;
- color: $color-white !important;
- background: $color-blue !important;
- border-radius: 0;
- transition: .5s;
-
- &:hover {
- background: $color-darkblue !important;
-
- }&:active {
- background: $color-lightblue !important;
- }
- }
-
-} // end input defaults
-
-
-#llms-skip-setup-form {
- .llms-admin-link {
- background:none!important;
- border:none;
- padding:0!important;
- color:#0074a2;
- cursor:pointer;
- &:hover {
- color:#2ea2cc
- }&:focus{
- color:#124964;
- }
-
- }
-
-}
-
-
-.llms-button-primary {
- border:none;
- text-shadow: none;
- border: none;
- outline: none;
- box-shadow: 0 1px 1px #ccc;
- margin: 0;
- padding: 2px 10px;
- color: $color-white;
- background: $color-blue;
- border-radius: 0;
- transition: .5s;
-
- &:hover {
- background: $color-darkblue;
-
- }&:active {
- background: $color-lightblue;
- }
-}
-
-.llms-button-secondary {
- border: none;
- text-shadow: none;
- border: none;
- outline: none;
- margin: 0;
- padding: 2px 10px;
- color: $color-blue;
- background: $color-white;
- border-radius: 0;
- transition: .5s;
- margin-right: 20px;
- box-shadow: 0 1px 1px #ccc;
-
- &:hover {
- background: $color-white;
-
- }&:active {
- background: $color-white;
- }
-}
-
-/**
- * Toggle Switch ( replaces checkbox on admin panels )
- */
-.llms-switch {
- position: relative;
- width: 100px;
- float: right;
-}
-.llms-toggle {
- position: absolute;
- margin-left: -9999px;
- visibility: hidden;
-}
-.llms-toggle + label {
- display: block;
- position: relative;
- cursor: pointer;
- outline: none;
- user-select: none;
-}
-input.llms-toggle-round + label {
- padding: 2px;
- width: 100px;
- height: 50px;
- background-color: none;
- border-radius: 5px;
- content: 'On';
-}
-input.llms-toggle-round + label:before,
-input.llms-toggle-round + label:after {
- display: block;
- position: absolute;
- top: 1px;
- left: 1px;
- bottom: 1px;
- content: "";
-}
-input.llms-toggle-round + label:before {
- right: 1px;
- background-color: #e26049;
- border-radius: 5px;
- transition: background 0.4s;
-}
-input.llms-toggle-round + label:after {
- width: 38px;
- height: 38px;
- top: 8px;
- left: 8px;
- background-color: #fff;
- border-radius: 5px;
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
- transition: margin 0.4s;
- z-index: 3;
-}
-input.llms-toggle-round:checked + label:before {
- background-color: #3abba5;
-}
-input.llms-toggle-round:checked + label:after {
- margin-left: 50px;
-}
-
-.llms-toggle-icon-on {
- content: "";
- position: absolute;
- left: 18px;
- top: 15px;
- z-index: 2;
- color: #2d9584;
-}
-.llms-toggle-icon-off {
- content: "";
- position: absolute;
- right: 13px;
- top: 15px;
- z-index: 2;
- color: #af3a26;
-
-}
-.toggle-icon {
- width: 30px;
- height: 30px;
-}
-.toggle-description {
- float: left;
-}
-
diff --git a/_private/scss/admin/modules/_icons.scss b/_private/scss/admin/modules/_icons.scss
deleted file mode 100644
index b937c1072c..0000000000
--- a/_private/scss/admin/modules/_icons.scss
+++ /dev/null
@@ -1,92 +0,0 @@
-/******************************************************************
-
-SVG Styles
-
-******************************************************************/
-
-svg {
- &.icon {
- height: 24px;
- width: 24px;
- display: inline-block;
- fill: currentColor; // Inherit color
- vertical-align: baseline; // Options: baseline, sub, super, text-top, text-bottom, middle, top, bottom
-
- // Different styling for when an icon appears in a button element
- button & {
- height: 18px;
- width: 18px;
- margin: 4px -4px 0 4px;
- filter: drop-shadow( 0 1px #eee );
- float: right;
-
- }&.menu-icon {
- height: 20px;
- width: 20px;
- display: inline-block;
- fill: currentColor;
- vertical-align: text-bottom;
- margin-right: 10px;
-
- }&.tree-icon {
- height: 13px;
- width: 13px;
- vertical-align: middle;
-
- }&.section-icon {
- height: 16px;
- width: 16px;
- vertical-align: text-bottom;
-
- }&.button-icon {
- height: 16px;
- width: 16px;
- vertical-align: text-bottom;
-
- }&.button-icon-attr {
- height: 10px;
- width: 10px;
- vertical-align: middle;
-
- }&.list-icon {
- height: 12px;
- width: 12px;
- vertical-align: middle;
-
- &.on {
- color: $color-blue;
-
- }&.off {
- color: $color-cinder;
- }
-
- }&.detail-icon {
- height: 16px;
- width: 16px;
- vertical-align: text-bottom;
- cursor:default;
-
- &.on {
- color: $color-blue;
-
- }&.off {
- color: $color-lightgrey;
- }
- }
-
- }
-
- &.icon-ion {}
-
- &.icon-ion-edit {}
-
- // rotate for arrow tips
- &.icon-ion-arrow-up {
- transform: rotate(90deg);
- }
-
- use {
- pointer-events: none;
- }
-
-}
\ No newline at end of file
diff --git a/_private/scss/admin/modules/_mb-tabs.scss b/_private/scss/admin/modules/_mb-tabs.scss
deleted file mode 100644
index f4406ffbe7..0000000000
--- a/_private/scss/admin/modules/_mb-tabs.scss
+++ /dev/null
@@ -1,142 +0,0 @@
-/******************************************************************
-
-Metabox Tabs
-
-******************************************************************/
-
-/**
- * Metabox Tabs
- */
-
-ul.tabs{
- margin: 0;
- padding: 0;
- list-style: none;
- background: $color-lightblue;
- width: 100%;
- display: block;
- overflow: hidden;
-
-}ul.tabs li{
- background: $color-lightblue;
- color: $color-white;
- display: inline-block;
- padding: 10px 0;
- cursor: pointer;
- margin: 0;
- transition: ease .3s all;
- white-space: nowrap;
- text-align: center;
-
- &:hover {
- background: $color-lightblue;
-
- }
-}
-
-ul.tabs li.tab-link:hover {
- background: $color-blue;
-}
-
-ul.tabs li.current{
- background: $color-darkblue;
- color: $color-white;
-
- &:hover {
- background: $color-darkblue;
-
- }
-}
-
-.container .tab-content{
- display: none;
- background: $color-white;
- padding: 15px;
-
- ul:not(.select2-selection__rendered):not(.chosen-choices):not(.chosen-results) {
- margin: 0;
-
- >li {
- padding: 20px 0;
- margin: 0;
- border-bottom: 1px solid $color-lightgrey;
-
- &:last-child {
- border: 0;
- padding-bottom: 0;
-
- }&.top {
- border-bottom: 0;
- padding-bottom: 0;
- }
-
- }
- }
-
- #wp-content-editor-tools {
- background: none;
- }
-
- .chosen-container-multi {
- width: 100% !important;
- }
-
- .chosen-container-multi .chosen-choices,
- .chosen-container-single .chosen-single {
- border-radius: 3px;
- vertical-align: middle;
- min-height: 32px;
- border: 1px solid $color-lightgrey;
- width: 100%;
- background: $color-white !important;
- outline: none;
- box-sizing: border-box;
- box-shadow: 0 0 0 #fff;
- line-height: 32px;
- margin: 0;
-
- &:focus {
- background: $color-white;
- border: 1px solid $color-blue;
- }
- }
-
- .chosen-container-multi,
- .chosen-container-single, {
- .chosen-results li {
- padding: 10px;
- }
- }
-
-
- .chosen-container-single .chosen-single div b {
- margin-top: 4px;
- }
-
- .chosen-container-multi {
- .chosen-choices li.search-choice {
- margin-top: 5px;
- }
- }
-
- .chosen-search input[type=text] {
- border: 1px solid $color-lightgrey;
-
- &:focus {
- background-color: $color-white;
- border: 1px solid $color-blue;
- }
-
- }
-
-}.container .tab-content.current{
- display: inherit;
-}
-ul.chosen-results li {
- border: 0;
-}
-
-.container .tab-content .no-border
-{
- border-bottom: 0px;
-}
diff --git a/_private/scss/admin/modules/_top-modal.scss b/_private/scss/admin/modules/_top-modal.scss
deleted file mode 100644
index c6db6b9338..0000000000
--- a/_private/scss/admin/modules/_top-modal.scss
+++ /dev/null
@@ -1,201 +0,0 @@
-/******************************************************************
-
-Styles for topModal modal
-
-******************************************************************/
-
-/**
- * Base modal styles
- */
-.topModal {
- display:none;
- position:relative;
- border:4px solid #808080;
- background:#fff;
- z-index:1000001;
- padding:2px;
- max-width:500px;
- margin: 34px auto 0;
- box-sizing: border-box;
- box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
- background-color: #ffffff;
- border-radius: 2px;
- border: 1px solid #dddddd;
-
-}.topModalClose {
- float:right;
- cursor:pointer;
- margin-right: 10px;
- margin-top: 10px;
-
-}.topModalContainer {
- display: none;
- overflow: auto;
- overflow-y: hidden;
- position: fixed;
- top: 0 !important;
- right: 0;
- bottom: 0;
- left: 0;
- -webkit-overflow-scrolling: touch;
- width: auto !important;
- margin-left: 0 !important;
- background-color: transparent !important;
- z-index: 100002 !important;
-
-}.topModalBackground {
- display:none;
- background:#000;
- position:fixed;
- height:100%;
- width:100%;
- top:0 !important;
- left:0;
- margin-left: 0 !important;
- z-index: 100002 !important;
- box-sizing: border-box;
- overflow: auto;
- overflow-y: hidden;
-
-}body.modal-open {
- overflow: hidden;
-
-}.llms-modal-header {
- border-top-right-radius: 1px;
- border-top-left-radius: 1px;
- background: $color-blue;
- color: #eeeeee;
- padding: 10px 15px;
- font-size: 18px;
-
-}#llms-icon-modal-close {
- width:16px;
- height: 16px;
- fill: $color-white;
-
-}.llms-modal-content {
- padding: 20px;
-
- h3 {
- margin-top: 0;
- }
-
-}
-
-/**
- * Custom Modal Styles for LifterLMS
- */
-.llms-modal-form {
-
- h1 {
- margin-top: 0;
- }
-
- input[type=text] {
- width: 100%;
- }
-
- textarea,
- input[type="text"],
- input[type="password"],
- input[type="file"],
- input[type="datetime"],
- input[type="datetime-local"],
- input[type="date"],
- input[type="month"],
- input[type="time"],
- input[type="week"],
- input[type="number"],
- input[type="email"],
- input[type="url"],
- input[type="search"],
- input[type="tel"],
- input[type="color"] {
- padding: 0 .4em 0 .4em;
- margin-bottom: 2em;
- vertical-align: middle;
- border-radius: 3px;
- min-width: 50px;
- max-width: 635px;
- width: 100%;
- min-height: 32px;
- background-color: #fff;
- border: 1px solid $color-lightgrey;
- margin: 0 0 24px 0;
- outline: none;
- transition: border 0.3s ease-in-out 0s;
-
- &:focus {
- background: $color-white;
- border: 1px solid $color-blue;
-
- }
- }
-
- textarea {
- padding: .4em !important;
- height: 100px !important;
- border-radius: 3px;
- vertical-align: middle;
- min-height: 32px;
- outline: none;
- box-sizing: border-box;
-
- &:focus {
- background: $color-white;
- border: 1px solid $color-blue;
-
- }
-
- }
-
- .chosen-container-single .chosen-single {
- border-radius: 3px;
- vertical-align: middle;
- min-height: 32px;
- border: 1px solid $color-lightgrey;
- width: 100%;
- background: $color-white !important;
- outline: none;
- box-sizing: border-box;
- box-shadow: 0 0 0 #fff;
- line-height: 32px;
- margin: 0 0 24px 0;
-
- &:focus {
- background: $color-white;
- border: 1px solid $color-blue;
- }
- }
-
- .chosen-container-single .chosen-single div b {
- margin-top: 4px;
- }
-
- .chosen-search input[type=text] {
- border: 1px solid $color-lightgrey;
-
- &:focus {
- background-color: $color-white;
- border: 1px solid $color-blue;
- }
-
- }
-
- .chosen-container-single .chosen-drop {
- margin-top: -28px;
- }
-
-
-
- .llms-button-primary, .llms-button-secondary {
- padding: 10px 10px;
- border-radius: 0;
- transition: .5s;
- box-shadow: 0 1px 1px #ccc;
-
- &.full {
- width: 100%;
- }
- }
-}
diff --git a/_private/scss/admin/modules/_voucher.scss b/_private/scss/admin/modules/_voucher.scss
deleted file mode 100644
index a50e662e38..0000000000
--- a/_private/scss/admin/modules/_voucher.scss
+++ /dev/null
@@ -1,123 +0,0 @@
-.llms-voucher-codes-wrapper,
-.llms-voucher-redemption-wrapper {
-
- table {
- width: 100%;
- border-collapse: collapse;
-
- th, td {
- border: none;
- }
-
- thead {
- background-color: $color-lightblue;
- color:#fff;
- th {
- padding: 10px 10px;
- }
- }
-
- tr {
- counter-increment: row-counter;
- &:nth-child(even) {
- background-color: #F1F1F1;
- }
-
- td {
- padding: 5px;
- &:first-child:before {
- content: counter( row-counter );
- }
- }
- }
- }
-}
-
-.llms-voucher-codes-wrapper {
-
- table {
- width: 100%;
- border-collapse: collapse;
-
- th, td {
- border: none;
- }
-
- thead {
- background-color: $color-lightblue;
- color:#fff;
- }
-
- tr {
- &:nth-child(even) {
- background-color: #F1F1F1;
- }
-
- td {
-
- span {
- display: inline-block;
- min-width: 30px;
- }
- }
- }
- }
-
- button {
- cursor: pointer;
- }
-
- .llms-voucher-delete {
- float: right;
- margin-right: 15px;
- }
-
- .llms-voucher-uses {
- width: 50px;
- }
-
- .llms-voucher-add-codes {
- float: right;
-
- input[type="text"] {
- width: 30px;
- }
- }
-}
-
-.llms-voucher-export-wrapper {
-
- .llms-voucher-export-type {
- width: 100%;
-
- p {
- margin: 0 0 0 15px;
- }
- }
-
- .llms-voucher-email-wrapper {
- width: 100%;
- margin: 25px 0;
-
- input[type="text"] {
- width: 100%;
- }
-
- p {
- margin: 0;
- }
- }
-
- > button {
- float: right;
- }
-}
-
-.postbox .inside {
- overflow: auto;
-}
-
-body .chosen-container-multi .chosen-choices li.search-field input[type="text"] {
- padding: 0 10px;
- height: auto;
-}
diff --git a/_private/scss/admin/modules/_widgets.scss b/_private/scss/admin/modules/_widgets.scss
deleted file mode 100644
index d8ef86e51d..0000000000
--- a/_private/scss/admin/modules/_widgets.scss
+++ /dev/null
@@ -1,83 +0,0 @@
-/******************************************************************
-
-Option Page Widgets
-
-******************************************************************/
-
-.llms-widget {
- width: 100%;
- border: 1px solid $color-lightgrey;
- background: $color-white;
- margin-bottom: 20px;
- padding: 0 20px 20px;
- box-sizing: border-box;
-
- h1 {
- font-size: 2.4em;
-
- }p {
- &.llms-label {
- text-align: center;
- color: $color-grey;
- text-transform: uppercase;
- letter-spacing: 3px;
- font-size: 1em;
- border-bottom: 1px solid $color-lightgrey;
- padding-bottom: 10px;
- margin: 10px 0;
- box-sizing: border-box;
- }
- }.llms-chart {
- width: 100%;
- padding: 10px;
- box-sizing: border-box;
- }
-
- mark.yes {
- background-color: #7ad03a;
- }
-
-
-}.llms-widget-1-4 {
- text-align: center;
-}
-
-.llms-user-profile {
- padding: 0 20px;
-}
-
-.llms-banner-image {
- padding-top: 20px;
- img { display: block; }
- // padding: 5px;
-}
-
-.llms-widget-row {
- div[class*="llms-widget-"] {
- vertical-align: top;
- }
-}
-
-.llms-widget-row .no-padding {
- padding: 0 !important;
-}
-
-.optin-form-wrapper {
- vertical-align: top;
-
- .optin-form {
- height: 335px;
- padding-top: 50px;
- box-sizing: border-box;
- background: #fff;
- margin: 5px;
-
- ._label {
- font-weight: bold;
- }
-
- input {
- margin-bottom: 10px;
- }
- }
-}
diff --git a/_private/scss/admin/partials/_grid.scss b/_private/scss/admin/partials/_grid.scss
deleted file mode 100644
index 87336ab8d8..0000000000
--- a/_private/scss/admin/partials/_grid.scss
+++ /dev/null
@@ -1,277 +0,0 @@
-/******************************************************************
-
-Grids for Breakpoints
-
-******************************************************************/
-
-// using a mixin since we can't use placeholder selectors
-@mixin grid-col {
- float: left;
- padding-right: 0.75em;
- box-sizing: border-box;
-
-}
-
-// the last column
-.last-col {
- float: right;
- padding-right: 0 !important;
-}
-.last-col:after {
- clear: both;
-}
-
-
-/*
-Mobile Grid Styles
-These are the widths for the mobile grid.
-There are four types, but you can add or customize
-them however you see fit.
-*/
-@media (max-width: 767px) {
-
- .m-all {
- @include grid-col;
- width: 100%;
- padding-right: 0;
- }
-
- .m-1of2 {
- @include grid-col;
- width: 50%;
- }
-
- .m-1of3 {
- @include grid-col;
- width: 33.33%;
- }
-
- .m-2of3 {
- @include grid-col;
- width: 66.66%;
- }
-
- .m-1of4 {
- @include grid-col;
- width: 25%;
- }
-
- .m-3of4 {
- @include grid-col;
- width: 75%;
- }
-
- .m-right {
- text-align: center;
- }
- .m-center {
- text-align: center;
- }
- .m-left {
- text-align: center;
- }
-
- .d-right {
- text-align: right;
- }
- .d-center {
- text-align: center;
- }
- .d-left {
- text-align: left;
- }
-
-} // end mobile styles
-
-
-/* Portrait tablet to landscape */
-@media (min-width: 768px) and (max-width: 1029px) {
-
- .t-all {
- @include grid-col;
- width: 100%;
- padding-right: 0;
- }
-
- .t-1of2 {
- @include grid-col;
- width: 50%;
- }
-
- .t-1of3 {
- @include grid-col;
- width: 33.33%;
- }
-
- .t-2of3 {
- @include grid-col;
- width: 66.66%;
- }
-
- .t-1of4 {
- @include grid-col;
- width: 25%;
- }
-
- .t-3of4 {
- @include grid-col;
- width: 75%;
- }
-
- .t-1of5 {
- @include grid-col;
- width: 20%;
- }
-
- .t-2of5 {
- @include grid-col;
- width: 40%;
- }
-
- .t-3of5 {
- @include grid-col;
- width: 60%;
- }
-
- .t-4of5 {
- @include grid-col;
- width: 80%;
- }
-
- .d-right {
- text-align: right;
- }
- .d-center {
- text-align: center;
- }
- .d-left {
- text-align: left;
- }
-
-} // end tablet
-
-/* Landscape to small desktop */
-@media (min-width: 1030px) {
-
- .d-all {
- @include grid-col;
- width: 100%;
- padding-right: 0;
- }
-
- .d-1of2 {
- @include grid-col;
- width: 50%;
- }
-
- .d-1of3 {
- @include grid-col;
- width: 33.33%;
- }
-
- .d-2of3 {
- @include grid-col;
- width: 66.66%;
- }
-
- .d-1of4 {
- @include grid-col;
- width: 25%;
- }
-
- .d-3of4 {
- @include grid-col;
- width: 75%;
- }
-
- .d-1of5 {
- @include grid-col;
- width: 20%;
- }
-
- .d-2of5 {
- @include grid-col;
- width: 40%;
- }
-
- .d-3of5 {
- @include grid-col;
- width: 60%;
- }
-
- .d-4of5 {
- @include grid-col;
- width: 80%;
- }
-
- .d-1of6 {
- @include grid-col;
- width: 16.6666666667%;
- }
-
- .d-1of7 {
- @include grid-col;
- width: 14.2857142857%;
- }
-
- .d-2of7 {
- @include grid-col;
- width: 28.5714286%;
- }
-
- .d-3of7 {
- @include grid-col;
- width: 42.8571429%;
- }
-
- .d-4of7 {
- @include grid-col;
- width: 57.1428572%;
- }
-
- .d-5of7 {
- @include grid-col;
- width: 71.4285715%;
- }
-
- .d-6of7 {
- @include grid-col;
- width: 85.7142857%;
- }
-
- .d-1of8 {
- @include grid-col;
- width: 12.5%;
- }
-
- .d-1of9 {
- @include grid-col;
- width: 11.1111111111%;
- }
-
- .d-1of10 {
- @include grid-col;
- width: 10%;
- }
-
- .d-1of11 {
- @include grid-col;
- width: 9.09090909091%;
- }
-
- .d-1of12 {
- @include grid-col;
- width: 8.33%;
- }
-
- .d-right {
- text-align: right;
- }
- .d-center {
- text-align: center;
- }
- .d-left {
- text-align: left;
- }
-
-} // end desktop styles
\ No newline at end of file
diff --git a/_private/scss/admin/partials/_variables.scss b/_private/scss/admin/partials/_variables.scss
deleted file mode 100644
index f44ff6c535..0000000000
--- a/_private/scss/admin/partials/_variables.scss
+++ /dev/null
@@ -1,14 +0,0 @@
-/******************************************************************
-
-COLORS
-
-******************************************************************/
-
-$color-white: #fff;
-$color-lightgrey: #ccc;
-$color-grey: #999;
-$color-darkgrey: #666;
-$color-cinder: #444;
-$color-lightblue: #33b1cb;
-$color-blue: #069cb5;
-$color-darkblue: #0185a3;
\ No newline at end of file
diff --git a/_private/scss/frontend/_llms-pagination.scss b/_private/scss/frontend/_llms-pagination.scss
deleted file mode 100644
index d0585c70a2..0000000000
--- a/_private/scss/frontend/_llms-pagination.scss
+++ /dev/null
@@ -1,29 +0,0 @@
-.llms-pagination {
-
- ul {
- list-style-type: none;
- @extend %cf;
-
- li {
-
- float: left;
-
- a {
- border-bottom: 0;
- text-decoration: none;
- }
-
- .page-numbers {
- padding: 0.5em;
- text-decoration: underline;
-
- &.current {
- text-decoration: none;
- }
- }
-
- }
-
- }
-
-}
\ No newline at end of file
diff --git a/_private/scss/frontend/_main.scss b/_private/scss/frontend/_main.scss
deleted file mode 100644
index 3f5c4da746..0000000000
--- a/_private/scss/frontend/_main.scss
+++ /dev/null
@@ -1,1128 +0,0 @@
-.llms-button {
- background: $color-red;
- border-radius: 3px;
- color: $color-white;
- display: inline-block;
- padding: 10px 20px;
- text-decoration: none;
- transition: background .4s ease;
-
- &:visited {
- color: $color-white;
- text-decoration: none;
- }
- &:hover {
- background: $color-red-hover;
- text-decoration: none;
- color: $color-white;
- }
-}
-
-.llms-button-text,
-input.llms-button-text,
-input[type="reset"].llms-button-text,
-input[type="submit"].llms-button-text {
- background: none;
- border: 0;
- color: $color-red;
- display: inline-block;
- padding: 0;
- text-decoration: none;
- &:focus,&:hover {
- background: none;
- }
-}
-
-.course-link .llms-button {
- color: $color-white;
- text-decoration: none;
- &:hover {
- color: $color-white;
- text-decoration: none;
- }
-
-}
-.llms-purchase-link-wrapper {
- .llms-purchase-button.llms-button {
- color: $color-white;
- text-decoration: none;
- margin-top: 10px;
- &:visited{
- color: $color-white;
- text-decoration: none;
- }
- &:hover {
- color: $color-white;
- text-decoration: none;
- }
- }
-}
-.course-link .llms-button {
- color: $color-white;
- text-decoration: none;
- &:visited{
- color: $color-white;
- text-decoration: none;
- }
- &:hover {
- color: $color-white;
- text-decoration: none;
- }
-}
-
-.hentry .course-link .llms-button {
- color: $color-white;
- text-decoration: none;
- &:visited{
- color: $color-white;
- text-decoration: none;
- }
- &:hover {
- color: $color-white;
- text-decoration: none;
- }
-}
-
-.llms-course-list {
-
- .llms-membership-link {
- @extend %llms-element;
-
- display: block
- }
-
- .llms-membership-footer {
- border-top: 3px solid $color-white;
- margin: 15px -15px 0;
- padding: 15px 15px 0;
- text-align: center;
- }
-
-}
-
-.llms-membership-image {
- display: block;
- margin: 0 auto;
-}
-
-.llms-membership-list .memberships {
- border-top: 1px solid #f6f6f6;
- width: 100%;
- display: inline-block;
- text-align: center;
- list-style: none;
- clear: both;
- margin: 0;
- padding: 0;
-}
-
-.llms-membership-list .memberships li {
- width: 300px;
- margin: 15px;
- list-style: none;
- vertical-align: top;
- display: inline-block;
- text-align: left;
-}
-
-.llms-membership-list .memberships li.first {
- margin-left: 0;
-}
-
-.llms-membership-list .memberships li.last {
- margin-right: 15px;
-}
-
-.llms-membership-list .memberships li .llms-title {
- display: block;
- font-weight: 700;
- margin-bottom: .5em;
- font-size: 18px;
- text-decoration: none;
- line-height: 30px;
-}
-
-.llms-membership-list .memberships li .llms-price {
- display: block;
- font-weight: 700;
- // margin-bottom: .5em;
- // font-size: 24px;
- text-decoration: none;
- line-height: 30px;
-}
-
-.llms-course-list {
- //margin: 30px 0;
- padding: 30px;
- //background: #FFF;
- // border-radius: 2px;
- display: inline-block;
- width: 100%;
-
- .llms-course-link {
- @extend %llms-element;
-
- display: block
- }
-
- .llms-course-footer {
- border-top: 3px solid $color-white;
- margin: 15px -15px 0;
- padding: 15px 15px 0;
- text-align: center;
- }
-
- .llms-progress {
- margin-top: 0;
- // .progress-bar {
- // background-color: $color-white;
- // }
- }
-
-}
-
-.llms-course-image {
- display: block;
- margin: 0 auto;
- max-width: 100%;
-}
-.llms-featured-image {
- display: block;
- margin: 0 auto 10px auto;
-}
-.llms-image-thumb {
- width: 150px;
-}
-
-.llms-course-list .courses {
- //border-top: 1px solid #f6f6f6;
- width: 100%;
- display: inline-block;
- text-align: center;
- list-style: none;
- clear: both;
- margin: 0;
- padding: 0;
-}
-
-.llms-course-list .courses li {
- width: 300px;
- padding-top: 0; // twentyfifteen compat
- margin: 15px;
- list-style: none;
- vertical-align: top;
- display: inline-block;
- text-align: left;
-}
-@media screen and (max-width: $break-small) {
- .llms-course-list .courses li {
- width: auto;
- }
-}
-
-// .llms-course-list .courses li.first {
-// margin-left: 0;
-// }
-
-.llms-course-list .courses li.last {
- margin-right: 15px;
-}
-
-.llms-course-list .courses li .llms-title {
- display: block;
- font-weight: 700;
- margin-bottom: .5em;
- font-size: 18px;
- text-decoration: none;
- line-height: 30px;
-}
-
-.llms-course-list .courses li .llms-price {
- display: block;
- font-weight: 700;
- // margin-bottom: .5em;
- // font-size: 24px;
- text-decoration: none;
- line-height: 30px;
-}
-.llms-video-wrapper {
- text-align: center;
- margin-bottom: 10px;
-}
-
-
-
-
-
-
-
-
-.llms-syllabus-wrapper {
- padding: 15px;
- text-align: center;
- h3 { margin-bottom: 0;
- }
-}
-
-//
-// LESSON PREVIEW
-//
-.llms-lesson-preview {
- display: inline-block;
- margin: 15px;
- text-align: left;
- vertical-align: top;
- width: 500px;
- max-width: 100%;
- max-width: calc(100% - 30px);
-
- // &.is-complete .llms-lesson-link {
- // padding-left: 75px;
- // }
-
- .llms-lesson-link {
- @extend %cf;
- @extend %llms-element;
- &:visited {
- color: inherit;
- }
- }
-
- .llms-lesson-complete, .llms-lesson-complete-placeholder {
- color: $color-red;
- float: left;
- font-size: 3em;
- line-height: 1;
- margin-right: .25em;
- }
-
- .llms-lesson-complete-placeholder {
- color: $el-background-hover;
- }
-
- .llms-free-lesson-svg {
- @extend .llms-lesson-complete;
- fill: currentColor;
- width:50px;
- height: 50px;
- margin-top: -10px;
- }
-
- .llms-lesson-title {
- padding-right: 60px;
- margin: 0 0 .25em 0;
- }
-
- .llms-lesson-counter {
- @include absolute(top 0 right 0);
- }
-
- .llms-lesson-excerpt {
- clear: both;
- margin-bottom: 0;
- }
-
- .llms-lesson-information {
- position: relative;
- float: left;
- width: 100%;
- }
-
- &.has-icon .llms-lesson-information {
- // &.is-complete .llms-lesson-information {
- width: calc( 100% - 55px );
- }
-
- .llms-lesson-thumbnail {
- margin-bottom: 15px;
- img {
- display: block;
- width: 100%;
- }
- }
-
-}
-
-.llms-course-navigation .llms-lesson-preview.previous {
- float: left;
- width: 50%;
- margin: 0;
- max-width: 300px;
-
- h5 {
- margin: 0;
- }
-
- p {
- font-size: .8em;
- }
-}
-.llms-course-navigation .llms-lesson-preview.next {
- float: right;
- width: 50%;
- margin: 0;
- max-width: 300px;
-
- h5 {
- margin: 0;
- }
-
- p {
- font-size: .8em;
- }
-}
-
-
-//
-// Course Navigation
-//
-.llms-course-navigation {
- // @extend %cf;
-
- text-align: center;
- padding: 30px 0;
-
- .prev-lesson,
- .next-lesson,
- .parent-course {
- display: inline-block;
- width: 28%;
- margin: 0;
- }
- .parent-course {
- @media screen and (max-width: $break-medium) {
- display: none;
- }
- }
-}
-
-
-
-
-.clear {
- clear: both;
- width: 100%;
-}
-.llms-featured-image {
- text-align: center;
-}
-.llms-featured-image > img {
-}
-
-.llms-purchase-link-wrapper {
- text-align: center;
- width: 100%;
- margin-bottom: 10px;
- margin-top: 10px;
-}
-.llms-length-wrapper {
- margin-top: 20px;
-}
-
-.llms-length-wrapper p {
- margin: 0;
-}
-/* My Quizes */
-.llms-quiz-results {
- font-family: "Open Sans",Verdana,Geneva,sans-serif,sans-serif;
- position: relative;
-}
-.llms-quiz-results > h3 {
- background-color: #f5f5f5;
- padding: 4px;
-}
-
-
-/* My Courses */
-.llms-my-courses {
- font-family: "Open Sans",Verdana,Geneva,sans-serif,sans-serif;
-}
-
-.llms-my-courses a {
- -webkit-filter: brightness(100%);
- -webkit-transition: all .5s ease;
- -moz-transition: all .5s ease;
- -o-transition: all .5s ease;
- -ms-transition: all .5s ease;
- transition: all .5s ease;
-}
-
-.llms-my-courses ul.listing-courses {
- width: 100%;
- margin: 0;
- padding: 0;
-}
-
-.llms-my-courses > h3 {
- background-color: #f5f5f5;
- padding: 4px;
-}
-
-.llms-my-courses ul.listing-courses li.course-item {
- margin: 10px 0;
- padding: 10px 0;
- list-style-type: none;
- width: 100%;
- border-bottom: 2px solid #f5f5f5;
-}
-.llms-my-courses ul.listing-courses li.course-item:first-child {
- border-bottom: 2px solid #f5f5f5;
-}
-
-.llms-my-courses ul.listing-courses li.course-item .course .course-image {
- float: left;
- margin-right: 20px;
- border: 1px solid #f5f5f5;
- padding: 4px;
- overflow: hidden;
- @media screen and (max-width: $break-small) {
- width: 100%
- }
-}
-
-.llms-my-courses ul.listing-courses li.course-item .course .course-image img {
- -webkit-filter: brightness(100%);
- -webkit-transition: all 1s ease;
- -moz-transition: all 1s ease;
- -o-transition: all 1s ease;
- -ms-transition: all 1s ease;
- transition: all 1s ease;
-}
-
-.llms-my-courses ul.listing-courses li.course-item .course .course-image img:hover {
- -webkit-filter: brightness(80%);
-
-}
-
-.llms-my-courses ul.listing-courses li.course-item .course h3 {
- margin: 10px 0;
- display: block;
- clear: none;
-}
-
-.llms-my-courses ul.listing-courses li.course-item .course p {
- margin: 0;
-}
-
-.llms-my-courses ul.listing-courses li.course-item .course hgroup {
-
-}
-
-.llms-my-courses ul.listing-courses li.course-item .course .info {
- float: left;
- width: 100%;
-}
-
-.llms-sts-enrollment {
- display: inline-block;
-}
-
-.llms-sts-enrollment .llms-sts-current {
- font-weight: 400;
-}
-
-.llms-start-date {
- float: right;
- text-align: right;
- @media screen and (max-width: $break-small) {
- float: none;
- text-align: left;
- }
-}
-
-.llms-my-courses ul.listing-courses li.course-item .course .course-message {
- border-radius: 3px;
- z-index: 10;
- margin: 10px 0;
- padding: 15px 20px;
- //background: #fffef4;
- border: 1px solid #ccc;
-}
-
-.course-message p {
- margin: 0;
-}
-
-// .grade-value, .author, .length, .difficulty, span {
-// font-size: 1.2rem;
-// font-weight: bold;
-// }
-
-.course-link {
- text-align: center;
-}
-
-.account-links {
- text-align: left;
- margin-bottom: 40px;
-}
-
-/* progress bar */
-.llms-progress {
- position: relative;
- height: 1em;
- width: 100%;
- margin: 15px 0;
-}
-
-.llms-progress .llms-progress-bar {
- background-color: #f1f2f1;
- position: absolute;
- height: .4em;
- left: 0;
- right: 3em;
- top: .3em;
-}
-
-.llms-progress .progress-bar-complete {
- background-color: $color-red;
- position: absolute;
- height: 100%;
-}
-
-.progress__indicator {
- float: right;
- width: 3em;
- text-align: right;
- height: 1em;
- line-height: 1em;
-}
-
-/* my certificates grid */
-.llms-my-certificates {
- font-family: "Open Sans",Verdana,Geneva,sans-serif,sans-serif;
-
- h3 {
- background-color: #f5f5f5;
- padding: 4px;
- }
-
- ul.listing-certificates {
- width: 100%;
- margin: 0;
-
- li.certificate-item {
- border-radius: 3px;
- z-index: 10;
- margin: 10px 0;
- padding: 15px 20px;
- //background: #fffef4;
- border: 1px solid #ccc;
- list-style-type: none;
- width: 100%;
- overflow: auto;
-
- div {
- display: block;
- width: 30%;
- float: left;
- text-align: right;
-
- p, h4 {
- margin: 0;
- }
- }
- div:first-child {
- width: 40%;
- text-align: left;
- }
- div:last-child {
-
- }
- }
- }
-}
-
-.llms-my-achievements {
- font-family: "Open Sans",Verdana,Geneva,sans-serif,sans-serif;
-
- h3 {
- background-color: #f5f5f5;
- padding: 4px;
- }
-
- ul.listing-achievements {
- @extend %cf;
-
- margin: 0;
- width: 100%;
-
- li.achievement-item {
- border-radius: 3px;
- margin: 1% 1% 0 0;
- padding: 15px 20px;
- //background: #fffef4;
- border: 1px solid #ccc;
- list-style-type: none;
- width: 32.333%;
- overflow: auto;
- min-width: 200px;
- z-index: 10;
- float: left;
- text-align: center;
-
- p, h4 {
- margin: 0;
- }
- }
- }
-}
-
-/* my certificates grid */
-.llms-my-memberships {
- font-family: "Open Sans",Verdana,Geneva,sans-serif,sans-serif;
-
- h3 {
- background-color: #f5f5f5;
- padding: 4px;
- }
-
- ul.listing-memberships {
- width: 100%;
- margin: 0;
-
- li.membership-item {
- padding: 15px 20px;
-
- border: 1px solid #ccc;
- list-style-type: none;
- width: 100%;
- overflow: auto;
- }
- }
-}
-
-/* Genisis Overrides */
-h1, h2, h3, h4, h5, h6 {
- font-weight: 300;
-}
-
-#main-content .llms-payment-options p {
- margin: 0;
- font-size: 16px;
-}
-
-/* checkout form */
-.llms-checkout-wrapper {
- border: 1px solid #f5f5f5;
- width: 100%;
- max-width: 800px;
- margin: 0 auto;
-
- .llms-checkout {
- border-top-left-radius: 4px;
- border-top-right-radius: 4px;
-
- border-top:6px solid $color-red;
-
-
- > h4 {
- background-color: #f5f5f5;
- padding: 6px 10px;
- margin: 0;
- }
-
- .llms-title-wrapper {
- display: block;
- width: 100%;
- border-bottom: 2px solid #f5f5f5;
-
- p {
- padding: 0 10px;
- margin: 10px 0;
- }
- h4 {
- padding: 0 10px;
- margin: 10px 0;
- }
- }
-
- .llms-price-wrapper {
- margin: 20px;
- font-size: 16px;
- //background:#fff;
-
-
-
- .llms-payment-options {
-
- }
- }
- }
-}
-
-.llms-option {
- display: block;
- position: relative;
- margin: 20px 0;
- padding-left:40px;
- font-size: 16px;
-
- label {
- cursor: pointer;
- position: static;
- }
-}
-.llms-option:first-child {
- margin-top:0;
-}
-.llms-option:last-child {
- margin-bottom:0;
-}
-#main-content .llms-option:last-child {
- margin-bottom:0;
-}
-
-.llms-option input[type="radio"] {
- display: block;
- position: absolute;
- top:3px;
- left:0;
- z-index: 0;
-}
-
-.llms-option input[type="radio"] {
- display: inline-block;
-}
-.llms-option input[type="radio"] + label span.llms-radio {
- display: none;
-}
-
-.llms-option input[type="radio"] + label span.llms-radio {
- appearance: none;
-
- z-index: 20;
- position: absolute;
- top: 0;
- left: -2px;
- display: inline-block;
- width: 24px;
- height: 24px;
- border-radius: 50%;
- cursor: pointer;
- vertical-align: middle;
- box-shadow: hsla(0,0%,100%,.15) 0 1px 1px, inset hsla(0,0%,0%,.5) 0 0 0 1px;
-
- background: #efefef;
- background-image: radial-gradient(ellipse at center, $color-red 0%,$color-red 40%,#efefef 45%);
- background-repeat: no-repeat;
-
- transition: background-position .15s cubic-bezier(.8, 0, 1, 1);
-}
-.llms-option input[type="radio"]:checked + label span.llms-radio {
- transition: background-position .2s .15s cubic-bezier(0, 0, .2, 1);
-}
-
-.llms-option input[type="radio"] + label span.llms-radio {
- background-position: -24px 0;
-}
-.llms-option input[type="radio"]:checked + label span.llms-radio {
- background-position: 0 0;
-}
-
-.llms-option input[type="submit"] {
- border:none;
- background:$color-red;
- color:#fff;
- font-size:20px;
- padding:10px 0;
- border-radius:3px;
- cursor:pointer;
- width:100%;
-}
-.llms-styled-text {
- padding: 14px 0;
-}
-.llms-notice-box {
- border-radius: 3px;
- z-index: 10;
- margin: 10px 0;
- padding: 15px 20px;
- //background: #fffef4;
- border: 1px solid #ccc;
- list-style-type: none;
- width: 100%;
- overflow: auto;
- input[type="text"] {
- height: auto;
- }
- .col-1-1 {
- width: 100%;
- input[type=text] {
- width: 100%;
- }
- }
- .col-1-2 {
- width: 50%;
- float: left;
- @media screen and (max-width: $break-medium) {
- width: 100%;
- }
- }
- .col-1-3 {
- width: 33%;
- float: left;
- margin-right: 10px;
- }
- .col-1-4 {
- width: 25%;
- float: left;
- margin-right: 10px;
- @media screen and (max-width: $break-medium) {
- width: 100%;
- }
- }
- .col-1-6 {
- width: 16.6%;
- float: left;
- margin-right: 10px;
- }
- .col-1-8 {
- width: 11%;
- float: right;
- }
- .llms-pad-right {
- padding-right: 10px;
- @media screen and (max-width: $break-medium) {
- padding-right: 0;
- }
- }
-}
-input[type="text"].cc_cvv,
-#cc_cvv {
- margin-right: 0;
- width: 23%;
- float: right;
-}
-.llms-clear-box {
- border-radius: 3px;
- z-index: 10;
- margin: 10px 0;
- padding: 15px 20px;
- list-style-type: none;
- width: 100%;
- overflow: auto;
-}
-.llms-price-label {
- font-weight: normal;
-}
-.llms-final-price {
- font-weight: bold;
- float: right;
-}
-.llms-center-content {
- text-align: center;
-}
-.llms-input-text {
- background-color: #fff;
- border: 1px solid #ddd;
- color: #333;
- font-size: 18px;
- font-weight: 300;
- padding: 16px;
- width: 100%;
-}
-.llms-price {
- margin-bottom: 0;
- font-weight: bold;
-}
-.llms-price-loop {
- margin-bottom: 0;
- font-weight: bold;
-}
-
-// henty overrides
-.courses .entry {
- padding: 0
-}
-.list-view .site-content .llms-course-list .hentry, .list-view .site-content .llms-membership-list .hentry {
- border-top: 0;
- padding-top: 0;
-}
-.llms-content {
- width: 100%;
-}
-
-.llms-lesson-button-wrapper {
- width: 100%;
- display: block;
- clear: both;
- text-align: center;
-}
-.llms-template-wrapper {
- width: 100%;
- display: block;
- clear: both;
-}
-.llms-button-wrapper {
- width: 100%;
- display: block;
- clear: both;
- text-align: center;
-}
-.courses a.llms-course-link:hover {
- text-decoration: none;
-}
-
-//custom select box
-.llms-styled-select {
- border: 1px solid #ccc;
- box-sizing: border-box;
- border-radius: 3px;
- overflow: hidden;
- position: relative;
-}
-.llms-styled-select, .llms-styled-select select {
- width: 100%;
-}
-select:focus { outline: none; }
-.llms-styled-select select {
- height: 34px;
- padding: 5px 0 5px 5px;
- background: transparent;
- border: none;
- -webkit-appearance: none;
- font-size: 16px;
- color: #444444;
-}
-
-@-moz-document url-prefix(){
- .--ms-styled-select select { width: 110%; }
-}
-
-.llms-styled-select .fa-sort-desc {
- position: absolute;
- top: 0;
- right: 12px;
- font-size: 24px;
- color: #ccc;
-}
-
-select::-ms-expand { display: none; }
-
-_:-o-prefocus, .selector {
- .llms-styled-select { background: none; }
-}
-
-.llms-form-item-wrapper {
- margin-bottom: 1em;
-}
-
-/* Circle Graph */
-.llms-progress-circle {
- position: relative;
- width: 200px;
- height: 200px;
- float: left;
-}
-
-.llms-progress-circle-count {
- top: 27%;
- position: absolute;
- width: 94%;
- text-align: center;
- color: #666;
- font-size:44px;
-}
-.llms-progress-circle svg {
- position: absolute;
- width: 200px;
- height: 200px;
-}
-.llms-progress-circle circle {
- fill: transparent;
-}
-svg .llms-background-circle {
- fill: transparent;
- stroke-width: 10px;
- stroke: #f1f2f1;
- stroke-dasharray: 430;
-}
-
-svg .llms-animated-circle {
- fill: transparent;
- stroke-width: 10px;
- stroke: #e5554e;
- stroke-dasharray: 430;
- stroke-dashoffset: 430 - 20
-}
-
-.llms-quiz-result-details {
- float: left;
- ul {
- list-style-type: none;
- float: left;
- li {
- font-size: 20px;
- }
- }
-}
-.llms-attempts {
- font-weight: bold;
-}
-
-.llms-pass-perc {
- font-weight: bold;
-}
-.llms-content-block {
- margin: 6px 0;
-}
-
-.llms-widget-syllabus {
-
-
- .llms-lesson-complete, .lesson-complete-placeholder {
- font-size: 1.2em;
- margin-right: 6px;
- color: #ccc;
- &.done {
- color: #e5554e;
- }
- }.section-title {
- font-weight: bold;
- }.lesson-title {
- a {
- text-decoration: none;
- &:hover {
- text-decoration: none !important;
- }
- }
- &.done {
- a {
- color: #999;
- text-decoration: line-through;
- }
- }
- }
- ul {
- list-style-type: none;
- li {
- list-style-type: none;
- ul li {
- margin: 0 0 2px 0;
- padding: 0;
- }
- }
- }
-}
-
-.llms-question-wrapper {
- margin: 40px 0 20px 0;
-}
-.llms-error{
- width: 100%;
- background: #e5554e;
- padding: 10px 20px;
- color: #fff;
- border-radius: 5px;
- margin-bottom: 10px;
- list-style-type: none;
-}
-.llms-question-count {
- margin-bottom: 20px;
-}
-
-
-.llms-remove-coupon {
- float: right;
-}
\ No newline at end of file
diff --git a/_private/scss/frontend/_tooltip.scss b/_private/scss/frontend/_tooltip.scss
deleted file mode 100644
index b88c501363..0000000000
--- a/_private/scss/frontend/_tooltip.scss
+++ /dev/null
@@ -1,46 +0,0 @@
-.llms-lesson-link-locked, .llms-lesson-link-locked:hover {
- background: #f1f1f1;
- box-shadow: 0 1px 2px 0 rgba(1, 1, 1, 0.4);
- display: block;
- color: #a6a6a6;
- min-height: 85px;
- padding: 15px;
- text-decoration: none;
- position: relative;
-}
-
-.llms-lesson-preview.is-complete .llms-lesson-link-locked {
- padding-left: 75px;
-}
-
-.llms-lesson-tooltip { display: none;
- position:absolute;
- color: #000000;
- background-color: #c0c0c0;
- padding:.25em;
- border-radius: 2px;
- z-index: 100;
- top:0;
- left:50%;
- text-align: center;
- -webkit-transform: translateX(-50%) translateY(-100%);
- transform: translateX(-50%) translateY(-100%);
- }
-
-/* arrows - :after */
-.llms-lesson-tooltip:after {
- content: "";
- width: 0;
- height: 0;
- border-top: 8px solid #c0c0c0;
- border-left: 8px solid transparent;
- border-right: 8px solid transparent;
- position:absolute;
- bottom:-8px;
- left:50%;
- transform: translateX(-50%);
-}
-
-.llms-lesson-tooltip.active {
- display: inline-block;
-}
\ No newline at end of file
diff --git a/_private/scss/frontend/_voucher.scss b/_private/scss/frontend/_voucher.scss
deleted file mode 100644
index 6c950121af..0000000000
--- a/_private/scss/frontend/_voucher.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-.voucher-expand {
- display: none;
-}
\ No newline at end of file
diff --git a/_private/scss/frontend/certificates.scss b/_private/scss/frontend/certificates.scss
deleted file mode 100644
index a3c100c9ce..0000000000
--- a/_private/scss/frontend/certificates.scss
+++ /dev/null
@@ -1,76 +0,0 @@
-body {
- background-color: #fff;
- background-image: none;
- margin: 0 auto;
-}
-
-.header {
- display: none;
-}
-
-#content {
- background: none;
-}
-
-.entry {
- top: 120px;
- width: 100%;
- margin-bottom: 40px !important;
- background: none;
-}
-
-.hentry {
- margin-bottom: 40px !important;
- padding: 50px 90px !important;
- background: none;
-}
-
-.site-header {
- display: none;
-}
-
-.nav-primary {
- display: none;
-}
-
-.llms-certificate-container {
- position: relative;
- padding: 20px;
- margin: auto;
- margin-bottom: 20px;
- -webkit-print-color-adjust: exact;
- overflow: hidden;
-}
-
-.llms-certificate-container h1:first-child {
- text-align: center;
-}
-
-#llms-print-certificate {
- text-align: center;
-}
-
-.llms-certificate-container {
-
- .certificate-background {
- position: absolute;
- z-index: 1;
- top: 0;
- left: 0;
- right: 0;
- }
-
- .llms_certificate,
- .llms_my_certificate {
- position: relative;
- z-index: 2;
- }
-}
-
-
-
-@media print {
- .no-print, .no-print * {
- display: none !important;
- }
-}
diff --git a/_private/scss/frontend/quiz-accordion.scss b/_private/scss/frontend/quiz-accordion.scss
deleted file mode 100644
index ce6f4867db..0000000000
--- a/_private/scss/frontend/quiz-accordion.scss
+++ /dev/null
@@ -1,399 +0,0 @@
-.quiz-summary {
- .hidden {
- display:none;
- }
- svg {
- width: 16px;
- height: 16px;
- padding-top: 0.3em;
- }
- ul {
- list-style: none;
- }
- a {
- text-decoration: none;
- font-size: .8em;
- color: #07c;
- border-bottom: none!important;
- cursor: pointer;
- }
- a:hover, a:visited, a:link, a:active {
- text-decoration: none;
- }
- a:hover {
- color: #30a7fc;
- }
- .accordion {
- .panel {
- margin-bottom: 20px;
- background-color: #fff;
- border: 1px solid transparent;
- border-radius: 4px;
- -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05);
- box-shadow: 0 1px 1px rgba(0,0,0,.05)
- }
- .panel-body {
- padding: 15px
- }
- .panel-heading {
- padding: 10px 15px;
- border-bottom: 1px solid transparent;
- border-top-left-radius: 3px;
- border-top-right-radius: 3px;
- .panel-title {
- margin:0!important;
- }
- }
-
- .panel-heading>.dropdown .dropdown-toggle {
- color: inherit
- }
-
- .panel-title {
- margin-top: 0;
- margin-bottom: 0;
- font-size: 16px;
- color: inherit
- }
-
- .panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a {
- color: inherit
- }
-
- .panel-footer {
- padding: 10px 15px;
- background-color: #f5f5f5;
- border-top: 1px solid #ddd;
- border-bottom-right-radius: 3px;
- border-bottom-left-radius: 3px
- }
-
- .panel>.list-group,.panel>.panel-collapse>.list-group {
- margin-bottom: 0
- }
-
- .panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item {
- border-width: 1px 0;
- border-radius: 0
- }
-
- .panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child {
- border-top: 0;
- border-top-left-radius: 3px;
- border-top-right-radius: 3px
- }
-
- .panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child {
- border-bottom: 0;
- border-bottom-right-radius: 3px;
- border-bottom-left-radius: 3px
- }
-
- .panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child {
- border-top-left-radius: 0;
- border-top-right-radius: 0
- }
-
- .panel-heading+.list-group .list-group-item:first-child {
- border-top-width: 0
- }
-
- .list-group+.panel-footer {
- border-top-width: 0
- }
-
- .panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table {
- margin-bottom: 0
- }
-
- .panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption {
- padding-right: 15px;
- padding-left: 15px
- }
-
- .panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child {
- border-top-left-radius: 3px;
- border-top-right-radius: 3px
- }
-
- .panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child {
- border-top-left-radius: 3px;
- border-top-right-radius: 3px
- }
-
- .panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child {
- border-top-left-radius: 3px
- }
-
- .panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child {
- border-top-right-radius: 3px
- }
-
- .panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child {
- border-bottom-right-radius: 3px;
- border-bottom-left-radius: 3px
- }
-
- .panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child {
- border-bottom-right-radius: 3px;
- border-bottom-left-radius: 3px
- }
-
- .panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child {
- border-bottom-left-radius: 3px
- }
-
- .panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child {
- border-bottom-right-radius: 3px
- }
-
- .panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body {
- border-top: 1px solid #ddd
- }
-
- .panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th {
- border-top: 0
- }
-
- .panel>.table-bordered,.panel>.table-responsive>.table-bordered {
- border: 0
- }
-
- .panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child {
- border-left: 0
- }
-
- .panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child {
- border-right: 0
- }
-
- .panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th {
- border-bottom: 0
- }
-
- .panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th {
- border-bottom: 0
- }
-
- .panel>.table-responsive {
- margin-bottom: 0;
- border: 0
- }
-
- .panel-group {
- margin-bottom: 20px
- }
-
- .panel-group .panel {
- margin-bottom: 0;
- border-radius: 4px
- }
-
- .panel-group .panel+.panel {
- margin-top: 5px
- }
-
- .panel-group .panel-heading {
- border-bottom: 0
- }
-
- .panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body {
- border-top: 1px solid #ddd
- }
-
- .panel-group .panel-footer {
- border-top: 0
- }
-
- .panel-group .panel-footer+.panel-collapse .panel-body {
- border-bottom: 1px solid #ddd
- }
-
- .panel-default {
- border-color: #ddd
- }
-
- .panel-default>.panel-heading {
- color: #333;
- background-color: #f5f5f5;
- border-color: #ddd
- }
-
- .panel-default>.panel-heading+.panel-collapse>.panel-body {
- border-top-color: #ddd
- }
-
- .panel-default>.panel-heading .badge {
- color: #f5f5f5;
- background-color: #333
- }
-
- .panel-default>.panel-footer+.panel-collapse>.panel-body {
- border-bottom-color: #ddd
- }
-
- .panel-primary {
- border-color: #337ab7
- }
-
- .panel-primary>.panel-heading {
- color: #fff;
- background-color: #337ab7;
- border-color: #337ab7
- }
-
- .panel-primary>.panel-heading+.panel-collapse>.panel-body {
- border-top-color: #337ab7
- }
-
- .panel-primary>.panel-heading .badge {
- color: #337ab7;
- background-color: #fff
- }
-
- .panel-primary>.panel-footer+.panel-collapse>.panel-body {
- border-bottom-color: #337ab7
- }
-
- .panel-success {
- border-color: #d6e9c6
- }
-
- .panel-success>.panel-heading {
- color: #3c763d;
- background-color: #dff0d8;
- border-color: #d6e9c6
- }
-
- .panel-success>.panel-heading+.panel-collapse>.panel-body {
- border-top-color: #d6e9c6
- }
-
- .panel-success>.panel-heading .badge {
- color: #dff0d8;
- background-color: #3c763d
- }
-
- .panel-success>.panel-footer+.panel-collapse>.panel-body {
- border-bottom-color: #d6e9c6
- }
-
- .panel-info {
- border-color: #bce8f1
- }
-
- .panel-info>.panel-heading {
- color: #31708f;
- background-color: #d9edf7;
- border-color: #bce8f1
- }
-
- .panel-info>.panel-heading+.panel-collapse>.panel-body {
- border-top-color: #bce8f1
- }
-
- .panel-info>.panel-heading .badge {
- color: #d9edf7;
- background-color: #31708f
- }
-
- .panel-info>.panel-footer+.panel-collapse>.panel-body {
- border-bottom-color: #bce8f1
- }
-
- .panel-warning {
- border-color: #faebcc
- }
-
- .panel-warning>.panel-heading {
- color: #8a6d3b;
- background-color: #fcf8e3;
- border-color: #faebcc
- }
-
- .panel-warning>.panel-heading+.panel-collapse>.panel-body {
- border-top-color: #faebcc
- }
-
- .panel-warning>.panel-heading .badge {
- color: #fcf8e3;
- background-color: #8a6d3b
- }
-
- .panel-warning>.panel-footer+.panel-collapse>.panel-body {
- border-bottom-color: #faebcc
- }
-
- .panel-danger {
- border-color: #ebccd1
- }
-
- .panel-danger>.panel-heading {
- color: #a94442;
- background-color: #f2dede;
- border-color: #ebccd1
- }
-
- .panel-danger>.panel-heading+.panel-collapse>.panel-body {
- border-top-color: #ebccd1
- }
-
- .panel-danger>.panel-heading .badge {
- color: #f2dede;
- background-color: #a94442
- }
-
- .panel-danger>.panel-footer+.panel-collapse>.panel-body {
- border-bottom-color: #ebccd1
- }
-
- .collapse {
- display: none
- }
-
- .collapse.in {
- display: block
- }
-
- .btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before {
- display: table;
- content: " "
- }
-
- .collapsing {
- position: relative;
- height: 0;
- overflow: hidden;
- -webkit-transition-timing-function: ease;
- -o-transition-timing-function: ease;
- transition-timing-function: ease;
- -webkit-transition-duration: .35s;
- -o-transition-duration: .35s;
- transition-duration: .35s;
- -webkit-transition-property: height,visibility;
- -o-transition-property: height,visibility;
- transition-property: height,visibility
- }
- }
- .wrong {
- border: 2px solid red !important;
- background-color: rgb(235, 121, 121) !important;
- }
-
- .right {
- border: 2px solid green !important;
- background-color: rgb(110, 209, 102) !important;
- }
-
- .wrong-panel {
- border-bottom: 2px solid red!important;
- border-left: 2px solid red!important;
- border-right: 2px solid red!important;
- }
-
- .right-panel {
- border-bottom: 2px solid green!important;
- border-left: 2px solid green!important;
- border-right: 2px solid green!important;
- }
-}
\ No newline at end of file
diff --git a/_private/scss/frontend/quiz-timer.scss b/_private/scss/frontend/quiz-timer.scss
deleted file mode 100644
index ed7add3217..0000000000
--- a/_private/scss/frontend/quiz-timer.scss
+++ /dev/null
@@ -1,93 +0,0 @@
-#llms-quiz-timer {
- float: right;
- width: 100%;
- clear: both;
-}
-.countdown-label {
- margin-top: 6px;
- text-align: center;
-
- display: inline-block;
-
-
- p {
- color: #65584c;
- letter-spacing: 2px;
- text-transform: uppercase;
- font-size: 12px;
- font-weight: thin;
- font-family: Arial;
- }
-}
-#countdown{
-box-shadow: 0 1px 2px 0 rgba(1, 1, 1, 0.4);
-width: 240px;
- height: 96px;
- text-align: center;
-background: #f1f1f1;
-
- border-radius: 5px;
-
- float: right;
-
-}
-
-
-
-#countdown #tiles{
- color: #fff;
- position: relative;
- z-index: 1;
-text-shadow: 1px 1px 0px #ccc;
- display: inline-block;
- font-family: Arial, sans-serif;
- text-align: center;
-
- padding: 0;
- border-radius: 5px 5px 0 0;
- font-size: 48px;
- font-weight: thin;
- display: block;
- line-height: 1.4;
-
-}
-
-.color-full {
- background: #53bb74;
-}
-.color-half {
- background: #ebc85d;
-}
-.color-empty {
- background: #e5554e;
-}
-
-#countdown #tiles > span{
- width: 70px;
- max-width: 70px;
-
- padding: 18px 0;
- position: relative;
-}
-
-
-
-
-
-#countdown .labels{
- width: 100%;
- height: 25px;
- text-align: center;
- position: absolute;
- bottom: 8px;
-}
-
-#countdown .labels li{
- width: 102px;
- font: bold 15px 'Droid Sans', Arial, sans-serif;
- color: #f47321;
- text-shadow: 1px 1px 0px #000;
- text-align: center;
- text-transform: uppercase;
- display: inline-block;
-}
\ No newline at end of file
diff --git a/_private/scss/lifterlms.scss b/_private/scss/lifterlms.scss
deleted file mode 100644
index 14c97341e3..0000000000
--- a/_private/scss/lifterlms.scss
+++ /dev/null
@@ -1,19 +0,0 @@
-//
-// Main Frontend CSS File
-//
-
-@import "_includes/vars";
-@import "_includes/extends";
-@import "_includes/mixins";
-
-@import "frontend/main";
-@import "frontend/llms-pagination";
-@import "frontend/tooltip";
-
-@import "frontend/quiz-timer";
-
-@import "frontend/quiz-accordion";
-
-@import "frontend/voucher";
-
-@import "_includes/vendor/_font-awesome";
diff --git a/_private/svg/llms-icon-calendar.svg b/_private/svg/llms-icon-calendar.svg
deleted file mode 100644
index 4e02ca4d61..0000000000
--- a/_private/svg/llms-icon-calendar.svg
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-checkmark.svg b/_private/svg/llms-icon-checkmark.svg
deleted file mode 100644
index c8bdd2eb0c..0000000000
--- a/_private/svg/llms-icon-checkmark.svg
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-circle-empty.svg b/_private/svg/llms-icon-circle-empty.svg
deleted file mode 100644
index cff0485a3a..0000000000
--- a/_private/svg/llms-icon-circle-empty.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-circle.svg b/_private/svg/llms-icon-circle.svg
deleted file mode 100644
index 37eafb0f77..0000000000
--- a/_private/svg/llms-icon-circle.svg
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-close.svg b/_private/svg/llms-icon-close.svg
deleted file mode 100644
index 08ede2e8ea..0000000000
--- a/_private/svg/llms-icon-close.svg
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-course-section.svg b/_private/svg/llms-icon-course-section.svg
deleted file mode 100644
index c4fa2f9590..0000000000
--- a/_private/svg/llms-icon-course-section.svg
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/_private/svg/llms-icon-existing-lesson.svg b/_private/svg/llms-icon-existing-lesson.svg
deleted file mode 100644
index c81a2e1444..0000000000
--- a/_private/svg/llms-icon-existing-lesson.svg
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-facebook.svg b/_private/svg/llms-icon-facebook.svg
deleted file mode 100644
index 052d7607ae..0000000000
--- a/_private/svg/llms-icon-facebook.svg
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-folder.svg b/_private/svg/llms-icon-folder.svg
deleted file mode 100644
index 78a73d7c3a..0000000000
--- a/_private/svg/llms-icon-folder.svg
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-free.svg b/_private/svg/llms-icon-free.svg
deleted file mode 100644
index 97f8e04613..0000000000
--- a/_private/svg/llms-icon-free.svg
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/_private/svg/llms-icon-gear.svg b/_private/svg/llms-icon-gear.svg
deleted file mode 100644
index f5e213cc24..0000000000
--- a/_private/svg/llms-icon-gear.svg
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-google.svg b/_private/svg/llms-icon-google.svg
deleted file mode 100644
index e5ae714900..0000000000
--- a/_private/svg/llms-icon-google.svg
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-graph.svg b/_private/svg/llms-icon-graph.svg
deleted file mode 100644
index d44b4b3562..0000000000
--- a/_private/svg/llms-icon-graph.svg
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-instagram.svg b/_private/svg/llms-icon-instagram.svg
deleted file mode 100644
index 2ded6d4aca..0000000000
--- a/_private/svg/llms-icon-instagram.svg
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-lightbulb.svg b/_private/svg/llms-icon-lightbulb.svg
deleted file mode 100644
index ac4d827f84..0000000000
--- a/_private/svg/llms-icon-lightbulb.svg
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-linkedin.svg b/_private/svg/llms-icon-linkedin.svg
deleted file mode 100644
index eb2b4d370a..0000000000
--- a/_private/svg/llms-icon-linkedin.svg
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-lock.svg b/_private/svg/llms-icon-lock.svg
deleted file mode 100644
index 0e6e321254..0000000000
--- a/_private/svg/llms-icon-lock.svg
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-media.svg b/_private/svg/llms-icon-media.svg
deleted file mode 100644
index 8642eaecbb..0000000000
--- a/_private/svg/llms-icon-media.svg
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-member.svg b/_private/svg/llms-icon-member.svg
deleted file mode 100644
index 29296c5204..0000000000
--- a/_private/svg/llms-icon-member.svg
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-new-lesson.svg b/_private/svg/llms-icon-new-lesson.svg
deleted file mode 100644
index 5c77d519fd..0000000000
--- a/_private/svg/llms-icon-new-lesson.svg
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-paper.svg b/_private/svg/llms-icon-paper.svg
deleted file mode 100644
index 33d0ee01d8..0000000000
--- a/_private/svg/llms-icon-paper.svg
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-papers.svg b/_private/svg/llms-icon-papers.svg
deleted file mode 100644
index 971fbb8a3f..0000000000
--- a/_private/svg/llms-icon-papers.svg
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-play.svg b/_private/svg/llms-icon-play.svg
deleted file mode 100644
index 84f24e06af..0000000000
--- a/_private/svg/llms-icon-play.svg
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-plus.svg b/_private/svg/llms-icon-plus.svg
deleted file mode 100644
index 68e72da1aa..0000000000
--- a/_private/svg/llms-icon-plus.svg
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-question.svg b/_private/svg/llms-icon-question.svg
deleted file mode 100644
index 96a968e830..0000000000
--- a/_private/svg/llms-icon-question.svg
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-rightarrow.svg b/_private/svg/llms-icon-rightarrow.svg
deleted file mode 100644
index b41f94050f..0000000000
--- a/_private/svg/llms-icon-rightarrow.svg
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-search.svg b/_private/svg/llms-icon-search.svg
deleted file mode 100644
index b6c659b26a..0000000000
--- a/_private/svg/llms-icon-search.svg
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-target.svg b/_private/svg/llms-icon-target.svg
deleted file mode 100644
index 0df9f3ea7c..0000000000
--- a/_private/svg/llms-icon-target.svg
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-twitter.svg b/_private/svg/llms-icon-twitter.svg
deleted file mode 100644
index c1d3cebb54..0000000000
--- a/_private/svg/llms-icon-twitter.svg
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-users.svg b/_private/svg/llms-icon-users.svg
deleted file mode 100644
index e7abbd1aa6..0000000000
--- a/_private/svg/llms-icon-users.svg
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-view.svg b/_private/svg/llms-icon-view.svg
deleted file mode 100644
index 730ef22729..0000000000
--- a/_private/svg/llms-icon-view.svg
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
diff --git a/_private/svg/llms-icon-youtube.svg b/_private/svg/llms-icon-youtube.svg
deleted file mode 100644
index 543bc31e90..0000000000
--- a/_private/svg/llms-icon-youtube.svg
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
diff --git a/_readme/description.md b/_readme/description.md
deleted file mode 100644
index c5b4f74747..0000000000
--- a/_readme/description.md
+++ /dev/null
@@ -1,71 +0,0 @@
-== Description ==
-
-LifterLMS is a powerful WordPress LMS plugin that makes it easy to create, sell, and protect engaging online courses. The mission of LifterLMS is to democratize education in the digital classroom.
-
->**LifterLMS Pro**
->
->Users looking for more timely/in-depth support are encouraged to check out [LifterLMS Pro](https://lifterlms.com/product/lifterlms-pro). One-on-one LifterLMS Pro support is responded to within 12 business hours.
->
->Premium LifterLMS themes also come with LifterLMS Pro.
->
->You should also check out the [LifterLMS Stripe](https://lifterlms.com/product/stripe-extension/) and [LifterLMS MailChimp](https://lifterlms.com/product/mailchimp-extension/) extensions to LifterLMS.
-
-Take a look at the explanation videos of LifterLMS. These 17 tutorial videos are included in the [free LifterLMS demo course](http://demo.lifterlms.com).
-
-https://www.youtube.com/watch?v=ceZkibkaoEo&index=1&list=PLx4tNLSmgY6uTTr1Ie4kdC8ytL4heWqDq
-
-More information at [LifterLMS.com](https://lifterlms.com).
-
-#### Features
-
-Whether you're an entrepreneur delivering your own courses, a school with lots of users, a player in the business-to-business corporate training space, or using online courses for marketing purposes, LifterLMS has your back.
-
-LifterLMS works great for health and fitness courses, music courses, real estate courses, language learning courses, and much, much more.
-
-**Learning Management System Features**
-
-+ Intuitive course builder
-+ Use text, video, audio, images, or any combination in your lessons
-+ Quizzing
-+ Prerequisites
-+ Student dashboards
-+ Student analytics
-+ Student management
-
-**Ecommerce Features**
-
-+ Accept one-time and/or recurring payments for your courses and memberships
-+ Works with PayPal out of the box
-+ Coupon system
-+ A voucher code system so you can grant access to large groups of people
-+ Accept credit cards directly on your site with the LifterLMS Stripe Extension
-+ Ecommerce analytics
-+ Create degree programs or course tracks by grouping courses together that can be taken in any order
-
-**Membership Site Features**
-
-+ Group courses together inside a membership level so you can sell many courses at once
-+ Protect non-LMS content, like regular WordPress pages, posts, bbPress forums, and more
-
-**Engagement and Gamification Features**
-
-+ Personalized email system triggered on user events in the system that you define
-+ Personalized achievement and badge system triggered on user events in the system that you define
-+ Personalized certificate system
-
-**Further Reading**
-
-+ The [LifterLMS plugin](https://lifterlms.com/) official homepage
-+ The [LifterLMS documentation](https://lifterlms.readme.io/)
-+ The [LifterLMS knowledgebase](https://lifterlms.com/docs)
-+ The [LifterLMS blog](http://blog.lifterlms.com/)
-+ The [LifterLMS podcast](http://podcast.lifterlms.com/)
-
-#### Join Our Growing Community
-
-When you download LifterLMS, you join a thriving community of education entrepreneurs, developers, and WordPress enthusiasts. We’re one of the fastest growing open source eLearning communities online, and you are welcome here.
-
-If you’re interested in contributing to LifterLMS, head over to the [LifterLMS GitHub Repository](https://github.com/gocodebox/lifterlms/) to find out how you can pitch in.
-
-Want to add a new language to LifterLMS? Swell! You can contribute via [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/lifterlms).
-
diff --git a/_readme/faqs.md b/_readme/faqs.md
deleted file mode 100644
index 2d3c8e562c..0000000000
--- a/_readme/faqs.md
+++ /dev/null
@@ -1,44 +0,0 @@
-== Frequently Asked Questions ==
-
-#### Are there any troubleshooting steps you'd suggest I try that might resolve my issue before I post a new thread?
-
-First, make sure that you're running the latest version of LifterLMS. And if you've got any other LifterLMS extensions or themes, make sure those are running the most current version as well.
-
-The most common issues we see are either plugin conflicts, theme conflicts, or outdated servers. You can test if a plugin or theme is conflicting by manually deactivating other plugins until just LifterLMS is running on your site. If the issue persists from there, revert to the default Twenty Fifteen theme. If the issue is resolved after deactivating a specific plugin or your theme, you'll know that is the source of the conflict. If it is a hosting issue, contact your web host and make sure they’re running the most current version of PHP.
-
-Also be sure to check out the official LifterLMS [documentation](https://lifterlms.readme.io/) and [knowledgebase](https://lifterlms.com/docs/).
-
-
-#### I'm still stuck. Where do I go to file a bug or ask a question?
-
-Users of the free LifterLMS should post their questions in the plugin's WordPress.org forum. If you find you're not getting support in as timely a fashion as you wish, you might want to consider purchasing a [LifterLMS Pro license](https://lifterlms.com/product/lifterlms-pro).
-
-If you're already a LifterLMS Pro user or you have purchased one of the LifterLMS themes or extensions, you're entitled to log into your account and contact the support team directly on the [LifterLMS website](https://lifterlms.com/my-account/). We can provide a deeper level of support here and address your needs on a daily basis during the work week. Generally, except in times of increased support loads, we reply to all comments within 12 business hours.
-
-
-#### LifterLMS is awesome! Can you set it all up for me?
-
-Yes. You can get an instant quote for the team at LifterLMS to set everything up for you through our signature Boost service. Get an instant quote through our automated quote generation tool on the [LifterLMS website services page](https://lifterlms.com/done-for-you-lms/).
-
-
-#### I'm interested in LifterLMS Pro, another LifterLMS extension, or a LifterLMS theme, but there are a few questions I've got before making the purchase. Can you help me get those addressed?
-
-Absolutely. If you're not finding your questions answered on the product pages, you can ask your presales questions through this [contact form](https://lifterlms.com/contact/). You can also connect live with a member of our team [here](https://lifterlms.com/contact/).
-
-
-#### What add-ons are available for LifterLMS, and where can I read more about them?
-
-Currently, the following add-ons are available for LifterLMS:
-
-+ [LifterLMS Stripe Payment Gateway](https://lifterlms.com/product/stripe-extension/), for accepting credit card payments directly on your website and passing the money through Stripe to your bank account.
-+ [LifterLMS MailChimp](https://lifterlms.com/product/mailchimp-extension/), for adding your users to a MailChimp email list and organizing them into groups or adding to separate email lists based on the courses they’ve enrolled in.
-
-
-#### I have a feature idea. What's the best way to tell you about it?
-
-We care about your feature ideas and what you have to say. You can request a feature [here](https://lifterlms.com/contact/). Also be sure to checkout the [LifterLMS product roadmap and changelog](https://lifterlms.com/roadmap/) to see how far we’ve come.
-
-
-#### I still have questions. Where can I find answers?
-
-Be sure you’ve taken the free tutorial training video course: [How to Create an Online Course with LifterLMS](http://demo.lifterlms.com/course/how-to-build-a-learning-management-system-with-lifterlms/).
\ No newline at end of file
diff --git a/_readme/header.md b/_readme/header.md
deleted file mode 100644
index 8898ce15f8..0000000000
--- a/_readme/header.md
+++ /dev/null
@@ -1,11 +0,0 @@
-=== LifterLMS ===
-Contributors: therealmarknelson, thomasplevy, chrisbadgett, kathy11, lifterlms, jackyliao888, anecieto, codeboxllc
-Donate link: https://lifterlms.com
-Tags: learning management system, LMS, membership, elearning, online courses, quizzes, sell courses, badges, gamification, learning
-Requires at least: 4.0
-Tested up to: 4.4.2
-Stable tag: 2.2.0
-License: GPLv2 or later
-License URI: http://www.gnu.org/licenses/gpl-2.0.html
-
-LifterLMS, the #1 WordPress LMS solution, makes it easy to create, sell, and protect engaging online courses.
\ No newline at end of file
diff --git a/_readme/installation.md b/_readme/installation.md
deleted file mode 100644
index 81ec2b9116..0000000000
--- a/_readme/installation.md
+++ /dev/null
@@ -1,12 +0,0 @@
-== Installation ==
-
-Installing the plugin is easy. Just follow these steps:
-
-1. From the dashboard of your site, navigate to Plugins > Add New.
-2. Select the Upload option and hit "Choose File."
-3. When the popup appears, select the lifterlms-x.x.zip file from your desktop. (The 'x.x' will change depending on the current version number).
-4. Follow the on-screen instructions and wait as the upload completes.
-5. When it's finished, activate the plugin via the prompt. A message will show confirming activation was successful.
-6. Click on Courses > Add Course, and you’re ready to build your first course!
-
-That's it! Just configure your settings as you see fit, and you're on your way to creating online courses in style. Need help getting things started? Check out our [Getting Started Guide and Documentation](https://lifterlms.readme.io/docs/getting-started).
\ No newline at end of file
diff --git a/_readme/readme.txt b/_readme/readme.txt
deleted file mode 100644
index b8c2b9b19d..0000000000
--- a/_readme/readme.txt
+++ /dev/null
@@ -1,11 +0,0 @@
-//= include ./header.md
-
-//= include ./description.md
-
-//= include ./installation.md
-
-//= include ./faqs.md
-
-//= include ./screenshots.md
-
-//= include ../CHANGELOG.md
\ No newline at end of file
diff --git a/_readme/screenshots.md b/_readme/screenshots.md
deleted file mode 100644
index a4bd3b338f..0000000000
--- a/_readme/screenshots.md
+++ /dev/null
@@ -1,17 +0,0 @@
-== Screenshots ==
-
-1. LifterLMS Course Settings
-2. LifterLMS Course Builder
-3. LifterLMS Course
-4. LifterLMS Achievements
-5. LifterLMS Sidebar Widgets
-6. LifterLMS Course Tiles
-7. LifterLMS Sales Analytics
-8. LifterLMS Lesson Completion Analytics
-9. LifterLMS Membership Settings
-10. LifterLMS Lesson
-11. LifterLMS Certificate
-12. LifterLMS Student Analytics
-13. LifterLMS Creating and Engagement
-14. LifterLMS Student Dashboard
-15. LifterLMS Course Analytics
\ No newline at end of file
diff --git a/bin/install-wp-tests.sh b/bin/install-wp-tests.sh
deleted file mode 100755
index 1e39064a59..0000000000
--- a/bin/install-wp-tests.sh
+++ /dev/null
@@ -1,78 +0,0 @@
-#!/usr/bin/env bash
-
-if [ $# -lt 3 ]; then
- echo "usage: $0 [db-host] [wp-version]"
- exit 1
-fi
-
-DB_NAME=$1
-DB_USER=$2
-DB_PASS=$3
-DB_HOST=${4-localhost}
-WP_VERSION=${5-latest}
-
-WP_TESTS_DIR=${WP_TESTS_DIR-/tmp/wordpress-tests-lib}
-WP_CORE_DIR=/tmp/wordpress/
-
-set -ex
-
-install_wp() {
- mkdir -p $WP_CORE_DIR
-
- if [ $WP_VERSION == 'latest' ]; then
- local ARCHIVE_NAME='latest'
- else
- local ARCHIVE_NAME="wordpress-$WP_VERSION"
- fi
-
- wget -nv -O /tmp/wordpress.tar.gz http://wordpress.org/${ARCHIVE_NAME}.tar.gz
- tar --strip-components=1 -zxmf /tmp/wordpress.tar.gz -C $WP_CORE_DIR
-
- wget -nv -O $WP_CORE_DIR/wp-content/db.php https://raw.github.com/markoheijnen/wp-mysqli/master/db.php
-}
-
-install_test_suite() {
- # portable in-place argument for both GNU sed and Mac OSX sed
- if [[ $(uname -s) == 'Darwin' ]]; then
- local ioption='-i .bak'
- else
- local ioption='-i'
- fi
-
- # set up testing suite
- mkdir -p $WP_TESTS_DIR
- cd $WP_TESTS_DIR
- svn co --quiet http://develop.svn.wordpress.org/trunk/tests/phpunit/includes/
-
- wget -nv -O wp-tests-config.php http://develop.svn.wordpress.org/trunk/wp-tests-config-sample.php
- sed $ioption "s:dirname( __FILE__ ) . '/src/':'$WP_CORE_DIR':" wp-tests-config.php
- sed $ioption "s/youremptytestdbnamehere/$DB_NAME/" wp-tests-config.php
- sed $ioption "s/yourusernamehere/$DB_USER/" wp-tests-config.php
- sed $ioption "s/yourpasswordhere/$DB_PASS/" wp-tests-config.php
- sed $ioption "s|localhost|${DB_HOST}|" wp-tests-config.php
-}
-
-install_db() {
- # parse DB_HOST for port or socket references
- local PARTS=(${DB_HOST//\:/ })
- local DB_HOSTNAME=${PARTS[0]};
- local DB_SOCK_OR_PORT=${PARTS[1]};
- local EXTRA=""
-
- if ! [ -z $DB_HOSTNAME ] ; then
- if [[ "$DB_SOCK_OR_PORT" =~ ^[0-9]+$ ]] ; then
- EXTRA=" --host=$DB_HOSTNAME --port=$DB_SOCK_OR_PORT --protocol=tcp"
- elif ! [ -z $DB_SOCK_OR_PORT ] ; then
- EXTRA=" --socket=$DB_SOCK_OR_PORT"
- elif ! [ -z $DB_HOSTNAME ] ; then
- EXTRA=" --host=$DB_HOSTNAME --protocol=tcp"
- fi
- fi
-
- # create database
- mysqladmin create $DB_NAME --user="$DB_USER" --password="$DB_PASS"$EXTRA
-}
-
-install_wp
-install_test_suite
-install_db
diff --git a/composer.phar b/composer.phar
deleted file mode 100755
index 93a27e5987..0000000000
Binary files a/composer.phar and /dev/null differ
diff --git a/gulpfile.js b/gulpfile.js
deleted file mode 100644
index 9697b00381..0000000000
--- a/gulpfile.js
+++ /dev/null
@@ -1,199 +0,0 @@
-/**
- * Require Dependencies
- */
-var gulp = require( 'gulp' ),
- sass = require( 'gulp-ruby-sass' ),
- autoprefixer = require( 'gulp-autoprefixer' ),
- minifycss = require( 'gulp-minify-css' ),
- rename = require( 'gulp-rename' ),
- include = require( 'gulp-include' ),
- uglify = require( 'gulp-uglify' ),
- notify = require( 'gulp-notify' ),
- growl = require( 'gulp-notify-growl' ),
- jscs = require('gulp-jscs'),
- jshint = require( 'gulp-jshint' ),
- svgstore = require('gulp-svgstore'),
- svgmin = require('gulp-svgmin');
-
-
-gulp.task('svgstore', function () {
- return gulp
- .src('_private/svg/*.svg')
- .pipe(svgmin())
- .pipe(svgstore())
- .pipe(gulp.dest('assets/svg'));
-});
-
-/**
- * JSCS
- * Runs on 'Build'
- * Runs "pretty" js code checks
- */
-gulp.task('jscs', function() {
- gulp.src( '_private/js/app/*.js' )
- .pipe( jscs() )
- .on('error',notify.onError({
- message: '<%= error.message %>',
- sound: 'Funk',
- title: 'JS Hint Error'
- } ) );
-
- /* Alternatively for Windows:
- .on('error',notify.onError({
- title: 'JSCS',
- message: '<%= error.message %>',
- sound: true,
- notifier: growlNotifier
- } ) );
- */
-});
-
-/**
- * Lint
- * Runs js linter checks
- */
-gulp.task('lint', function() {
- gulp.src('_private/js/app/*.js')
- .pipe(jshint('.jshintrc'))
- .pipe(jshint.reporter('jshint-stylish'))
- .pipe(jshint.reporter('fail'))
- .on('error',notify.onError({
- message: '<%= error.message %>',
- sound: 'Funk',
- title: 'JS Hint Error'
- }));
-
- /* Alternatively for Windows:
- .on('error',notify.onError({
- title: 'JSLint',
- message: '<%= error.message %>',
- sound: true,
- notifier: growlNotifier
- } ) );
- */
-});
-
-/**
- * JS build
- * Runs JSCS and Linter before process-scripts
- */
-gulp.task('build', ['jscs', 'lint'], function() {
-
- gulp.src('/')
- //pipe through other tasks such as sass or coffee compile tasks
- .pipe(notify({
- title: 'Task Builder',
- message: 'Successfully built application'
- }))
-
-});
-
-/**
- * Rebuild task to do everything in one fell swoop
- */
-gulp.task('rebuild',['process-scripts','process-frontend-styles','process-frontend-certificates-styles','process-admin-styles'],function(){});
-
-/**
- * Compile front end SASS files
- */
-gulp.task( 'process-frontend-styles', function () {
-
- return sass( '_private/scss/lifterlms.scss', {
- cacheLocation: '_private/scss/.sass-cache',
- style: 'expanded'
- })
- .pipe( autoprefixer( 'last 2 version' ) )
- .pipe( gulp.dest( 'assets/css/' ) )
- .pipe( rename( { suffix: '.min' } ) )
- .pipe( minifycss() )
- .pipe( gulp.dest( 'assets/css/') )
- .pipe(notify({
- title: 'Front End Styles',
- message: 'Successfully Built Front End Styles'
- }));
-
-});
-
-/**
- * Compile certificates SASS files
- */
-gulp.task( 'process-frontend-certificates-styles', function () {
-
- return sass( '_private/scss/frontend/certificates.scss', {
- cacheLocation: '_private/scss/.sass-cache',
- style: 'expanded'
- })
- .pipe( autoprefixer( 'last 2 version' ) )
- .pipe( gulp.dest( 'assets/css/' ) )
- .pipe( rename( { suffix: '.min' } ) )
- .pipe( minifycss() )
- .pipe( gulp.dest( 'assets/css/') )
- .pipe(notify({
- title: 'Front End Certificates Styles',
- message: 'Successfully Built Front End Certificates Styles'
- }));
-
-});
-
-/**
- * Compile admin SASS files
- */
-gulp.task( 'process-admin-styles', function () {
-
- return sass( '_private/scss/admin.scss', {
- cacheLocation: '_private/scss/.sass-cache',
- style: 'expanded'
- })
- .pipe( autoprefixer( 'last 2 version' ) )
- .pipe( gulp.dest( 'assets/css/' ) )
- .pipe( rename( { suffix: '.min' } ) )
- .pipe( minifycss() )
- .pipe( gulp.dest( 'assets/css/') )
- .pipe(notify({
- title: 'Admin Styles',
- message: 'Successfully Built Admin Styles'
- }));
-
-});
-
-/**
- * Minify JS files
- */
-gulp.task( 'process-scripts', function () {
-
- return gulp.src( '_private/js/*.js' )
- .pipe(include())
- .pipe( rename( { suffix: '.min' } ) )
- .pipe( uglify() )
- .pipe( gulp.dest( 'assets/js/' ) );
-
-});
-
-/**
- * Gulp Watch command
- * Runs Build on js file change
- * Compiles js scripts if build passes
- *
- * Compiles Admin and Frontend scripts
- */
-gulp.task( 'watch', function () {
-
- gulp.watch( '_private/js/**/*.js', [ 'build', 'process-scripts' ] );
- //gulp.watch( '_private/**/*.scss', [ 'process-admin-styles' ] );
- gulp.watch( '_private/**/*.scss', [ 'process-frontend-styles' ] );
-
-
-});
-
-
-
-gulp.task( 'readme', function() {
-
- return gulp.src( '_readme/readme.txt' )
- .pipe( include() )
- .pipe( gulp.dest( './' ) );
-
-} );
-
-
-gulp.task('default', ['rebuild']);
diff --git a/package.json b/package.json
deleted file mode 100644
index 2ad23e0a85..0000000000
--- a/package.json
+++ /dev/null
@@ -1,41 +0,0 @@
-{
- "name": "lifterlms",
- "version": "0.0.1",
- "description": "LifterLMS by codeBOX",
- "main": "index.js",
- "directories": {
- "test": "tests"
- },
- "scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
- },
- "repository": {
- "type": "git",
- "url": "https://therealmarknelson@github.com/gocodebox/lifterlms.git"
- },
- "author": "codeBOX",
- "license": "ISC",
- "bugs": {
- "url": "https://github.com/gocodebox/lifterlms/issues"
- },
- "homepage": "https://github.com/gocodebox/lifterlms",
- "devDependencies": {
- "cheerio": "^0.19.0",
- "gulp": "^3.9.0",
- "gulp-autoprefixer": "^2.1.0",
- "gulp-include": "^1.1.1",
- "gulp-jscs": "^1.4.0",
- "gulp-jshint": "^1.9.2",
- "gulp-minify-css": "^1.0.0",
- "gulp-notify": "^2.2.0",
- "gulp-notify-growl": "^1.0.2",
- "gulp-rename": "^1.2.0",
- "gulp-ruby-sass": "^1.0.0-alpha.3",
- "gulp-svgmin": "^1.1.1",
- "gulp-svgstore": "^5.0.0",
- "gulp-uglify": "^1.1.0",
- "jscs": "^1.11.3",
- "jshint": "^2.6.3",
- "jshint-stylish": "^1.0.1"
- }
-}
diff --git a/phpunit.xml b/phpunit.xml
deleted file mode 100644
index 44f0fdb69c..0000000000
--- a/phpunit.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
- ./tests/
-
-
-
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
deleted file mode 100644
index ff3893351e..0000000000
--- a/tests/bootstrap.php
+++ /dev/null
@@ -1,14 +0,0 @@
-assertTrue( true );
- }
-
- function test_sample_string() {
-
- $string = 'Unit tests are sweet';
-
- $this->assertEquals( 'Unit tests are sweet', $string);
- }
-
- public function testTalk() {
- $user = new LLMS_Meta_Box_Access();
-
- $expected = "Hello world!";
- $actual = $user->talk();
- $this->assertEquals($expected, $actual);
- }
-
- public function testPushAndPop() {
- $stack = array();
- $this->assertEquals(0, count($stack));
-
- array_push($stack, 'foo');
- $this->assertEquals('foo', $stack[count($stack)-1]);
- $this->assertEquals(1, count($stack));
-
- $this->assertEquals('foo', array_pop($stack));
- $this->assertEquals(0, count($stack));
- }
-
- public function testEmpty() {
- $stack = array();
- $this->assertEmpty($stack);
-
- return $stack;
- }
-
- /**
- * @depends testEmpty
- */
- public function testPush(array $stack) {
- array_push($stack, 'foo');
- $this->assertEquals('foo', $stack[count($stack)-1]);
- $this->assertNotEmpty($stack);
-
- return $stack;
- }
-
- /**
- * @depends testPush
- */
- public function testPop(array $stack) {
- $this->assertEquals('foo', array_pop($stack));
- $this->assertEmpty($stack);
- }
-
- /**
- * @dataProvider additionProvider
- */
- public function testAdd($a, $b, $expected)
- {
- $this->assertEquals($expected, $a + $b);
- }
-
- public function additionProvider()
- {
- return array(
- array(0, 0, 0),
- array(0, 1, 1),
- array(1, 0, 1),
- array(1, 2, 3)
- );
- }
-}
-
diff --git a/tests/test-sample.php b/tests/test-sample.php
deleted file mode 100644
index 79f3cd09d2..0000000000
--- a/tests/test-sample.php
+++ /dev/null
@@ -1,17 +0,0 @@
-assertTrue( true );
- }
-
- function test_sample_string() {
-
- $string = 'Unit tests are sweet';
-
- $this->assertEquals( 'Unit tests are sweet', $string);
- }
-}
-