2014-03-12 22:03:47 +00:00
|
|
|
<?php
|
|
|
|
|
|
2016-08-17 20:24:27 -05:00
|
|
|
namespace LibreNMS\Plugins;
|
|
|
|
|
|
2016-08-18 20:28:22 -05:00
|
|
|
class Test
|
|
|
|
|
{
|
2018-05-09 08:39:21 -05:00
|
|
|
public static function menu()
|
2016-08-18 20:28:22 -05:00
|
|
|
{
|
2016-09-11 23:41:41 -05:00
|
|
|
echo '<li><a href="plugin/p=Test">Test</a></li>';
|
2020-09-21 14:54:51 +02:00
|
|
|
}
|
2014-03-12 22:03:47 +00:00
|
|
|
|
2020-09-21 14:54:51 +02:00
|
|
|
//end menu()
|
2015-07-13 20:10:26 +02:00
|
|
|
|
2020-09-21 14:54:51 +02:00
|
|
|
public function device_overview_container($device)
|
|
|
|
|
{
|
|
|
|
|
echo '<div class="container-fluid"><div class="row"> <div class="col-md-12"> <div class="panel panel-default panel-condensed"> <div class="panel-heading"><strong>' . get_class() . ' Plugin </strong> </div>';
|
|
|
|
|
echo ' Example plugin in "Device - Overview" tab <br>';
|
|
|
|
|
echo '</div></div></div></div>';
|
2018-05-22 09:11:27 +02:00
|
|
|
}
|
|
|
|
|
|
2020-09-21 14:54:51 +02:00
|
|
|
public function port_container($device, $port)
|
|
|
|
|
{
|
|
|
|
|
echo '<div class="container-fluid"><div class="row"> <div class="col-md-12"> <div class="panel panel-default panel-condensed"> <div class="panel-heading"><strong>' . get_class() . ' plugin in "Port" tab</strong> </div>';
|
|
|
|
|
echo 'Example display in Port tab</br>';
|
|
|
|
|
echo '</div></div></div></div>';
|
2018-05-22 09:11:27 +02:00
|
|
|
}
|
2015-07-13 20:10:26 +02:00
|
|
|
}
|