Example #1
0
?>
</button>
            </div>


    </div>
    </form>

</div>
</div>


<?php 
$content = "<p>You can in this page modify the course name and description, associated image, categories and authors. If you have installed buddypress, you can also associate the course to multiple groups. Thus, after each lesson or quiz publication, a message is sent to buddypress groups that are related to their corresponding course.</p>\r\n<p>Categories present in this page are the categories that you have defined as post categories on Wordpress. The link between them and courses can help the creation of the web site menu.</p>\r\n<p>Authors list present in this page contains all Wordpress users that have administrator, editor or author rights. Associated authors to the course will have the rights to see, modify, delete and publish lessons and quizzes associated to this course.</p>\r\n<p>At the right of this page you can organize the order of your activities (lessons and quizzes) related the course.</p>";
$msg = "This feature is available for users who have <b>administrator</b>, <b>editor</b> or <b>author</b> rights. Authors and editors can only modify some information about the course.";
sp_display_modal_help($content, $msg);
?>


</div>









<script>
    var sp_picture_url= "<?php 
Example #2
0
                </div>
            </div>
        </div>
    </div>



</div>
</div>



<?php 
$contentDomain = "You can use domains to activate multi criteria ratings of lessons and quizzes. If no domain is defined, web site users can only rate the quality of the lesson or the quiz.";
$msgDomainAccess = "This feature is available for users who have <b>administrator</b> rights.";
sp_display_modal_help($contentDomain, $msgDomainAccess, "modal-help-domain");
?>

</div>

<script>

    (function($) {
        $(document).ready(function() {

            var trSelected;

            function trimStr(str) {
                return str.replace(/^\s+|\s+$/gm, '');
            }

                    <?php 
require_once __ROOT_PLUGIN__ . "controllers/domain.controller.php";
?>
                </div>
                </div>
            </div>
        </div>
    </div>


<?php 
$contentConfig = "You can use this setting to configure the following options:\r\n<ul style='list-style :disc;margin:20px'>   \r\n<li><b>Show rating:</b><br/> display the rating (5 stars) at the end of each lesson and quiz;</li>\r\n<li><b>Responsive player:</b><br/> the lesson or quiz player size follow the width of the page;</li>\r\n<li><b>show Tags in player:</b><br/> Display the \"Tags\" tab in the lesson and quiz player;</li>\r\n<li><b>show glossary in player:</b><br/> Display the \"Glossary\" tab in the lesson ans quiz player;</li>\r\n<li><b>Size of player:</b><br/> Set the size of the lesson and quiz player. Three preconfigured sizes are proposed;</li>\r\n<li><b>Share automatically lessons and quizzes when published on buddypress:</b><br/> activate the sharing option of lessons and quizzes on buddypress (an integrated social network in wordpress)</li>\r\n<li><b>Users can share lessons and quizzes on socials network:</b><br/> activate the sharing option of lessons and quizzes on social networks (facebook, twitter, g+ and linkedin)</li>\r\n<li><b>Users can share lessons and quizzes on buddypress:</b><br/> activate the sharing option of quizzes result on buddypress</li></ul>";
$msgAccess = "This feature is available for users who have <b>administrator</b> rights.";
sp_display_modal_help($contentConfig, $msgAccess, "modal-help-config");
?>




<script>
    (function($) {
        $(".sp-help").css("top","50px");
        $(document).ready(function () {

            $('.nav a:<?php 
echo $settingsActive ? "first" : "last";
?>
').tab('show');
        })