static function Instance()
 {
     if (null === MainWP_Child_Branding::$instance) {
         MainWP_Child_Branding::$instance = new MainWP_Child_Branding();
     }
     return MainWP_Child_Branding::$instance;
 }
Пример #2
0
 public function branding_child_plugin()
 {
     MainWP_Child_Branding::Instance()->action();
 }
    protected static function renderDirectoryRow($pName, $pDirectory, $pCheck, $pResult, $pPassed)
    {
        ?>
		<tr>
			<td></td>
			<td><?php 
        echo esc_html($pName);
        ?>
<br/><?php 
        echo esc_html(MainWP_Child_Branding::is_branding() ? '' : $pDirectory);
        ?>
			</td>
			<td><?php 
        echo esc_html($pCheck);
        ?>
</td>
			<td><?php 
        echo esc_html($pResult);
        ?>
</td>
			<td><?php 
        echo $pPassed ? '<span class="mainwp-pass"><i class="fa fa-check-circle"></i> Pass</span>' : '<span class="mainwp-warning"><i class="fa fa-exclamation-circle"></i> Warning</span>';
        ?>
</td>
		</tr>
		<?php 
        return true;
    }