@@ -118,7 +118,8 @@ public function init()
118
118
/**
119
119
* Extend the original local_skin_path method with the default skin path as fallback
120
120
*
121
- * @return string $skin_path Roundcubes skin path
121
+ * @param boolean $include_plugins_directory Include plugins directory
122
+ * @return string $skin_path Roundcubes skin path
122
123
*/
123
124
public function local_skin_path ($ include_plugins_directory = false )
124
125
{
@@ -466,13 +467,52 @@ public function carddav_server_form()
466
467
$ output = html::div (
467
468
array ('class ' => 'box carddav ' ),
468
469
html::div (array ('class ' => 'boxtitle ' ), $ this ->gettext ('settings ' )).
469
- html::div (array ('class ' => 'boxcontent ' , 'id ' => 'carddav_server_list ' ), $ this ->get_carddav_server_list ()).
470
- html::div (array ('class ' => 'boxcontent ' ), $ boxcontent )
470
+ html::div (array ('class ' => 'boxcontent ' , 'id ' => 'carddav_server_list ' ), $ this ->get_carddav_server_list ()).
471
+ html::div (array ('class ' => 'boxcontent ' ), $ boxcontent ).
472
+ html::div (array ('class ' => 'boxcontent ' ), $ this ->get_carddav_url_list ())
471
473
);
472
474
473
475
return $ output ;
474
476
}
475
477
478
+ /**
479
+ * Render a CardDAV server example URL list
480
+ *
481
+ * @return string $content HTML CardDAV server example URL list
482
+ */
483
+ public function get_carddav_url_list ()
484
+ {
485
+ $ content = null ;
486
+
487
+ $ table = new html_table (array (
488
+ 'cols ' => 2 ,
489
+ 'class ' => 'carddav_server_list '
490
+ ));
491
+
492
+ $ table ->add (array (), 'DAViCal ' );
493
+ $ table ->add (array (), 'https://example.com/{resource|principal|username}/{collection}/ ' );
494
+
495
+ $ table ->add (array (), 'Apple Addressbook Server ' );
496
+ $ table ->add (array (), 'https://example.com/addressbooks/users/{resource|principal|username}/{collection}/ ' );
497
+
498
+ $ table ->add (array (), 'memotoo ' );
499
+ $ table ->add (array (), 'https://sync.memotoo.com/cardDAV/ ' );
500
+
501
+ $ table ->add (array (), 'SabreDAV ' );
502
+ $ table ->add (array (), 'https://example.com/addressbooks/{resource|principal|username}/{collection}/ ' );
503
+
504
+ $ table ->add (array (), 'ownCloud ' );
505
+ $ table ->add (array (), 'https://example.com/apps/contacts/carddav.php/addressbooks/{resource|principal|username}/{collection}/ ' );
506
+
507
+ $ table ->add (array (), 'SOGo ' );
508
+ $ table ->add (array (), 'https://example.com/SOGo/dav/{resource|principal|username}/Contacts/{collection}/ ' );
509
+
510
+ $ content .= html::div (array ('class ' => 'carddav_headline example_server_list ' ), $ this ->gettext ('settings_example_server_list ' ));
511
+ $ content .= html::div (array ('class ' => 'carddav_container ' ), $ table ->show ());
512
+
513
+ return $ content ;
514
+ }
515
+
476
516
/**
477
517
* Save CardDAV server and execute first CardDAV contact sync
478
518
*
0 commit comments