Exemplo n.º 1
0
 /**
  *
  * @return \OpenSearch\Core\Registry
  */
 static function instance()
 {
     if (Core\Utils::readyForClient() && Core\Utils::readyToIndex() && Core\Utils::readyForTemplate() && empty(self::$doc)) {
         self::$doc = new Core\Doc();
     }
     if (!isset(self::$instance)) {
         self::$instance = new self();
     }
     return self::$instance;
 }
 public function testReadyForClient()
 {
     $readyForClient = Core\Utils::readyForClient();
     $this->assertEquals(true, $readyForClient);
 }
Exemplo n.º 3
0
    ?>
[accessHost]"></td>
						</tr>
						<tr>
							<td>
								<p class="submit"><input type="submit" value="<?php 
    esc_attr_e('Save Changes', $langDomain);
    ?>
" class="button button-primary" id="submit" name="submit"></p>
							</td>
						</tr>
					</tbody>
				</table>

				<?php 
    if (Core\Utils::readyForClient()) {
        ?>
				<table class="widefat" style="margin-top: 30px; width: 50%; ">
					<thead>
						<tr>
							<th class="row-title" colspan="2"><strong><?php 
        esc_html_e('Upload Your Document', $langDomain);
        ?>
</strong></th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<th scope="row"><label for="opSou_appName"><?php 
        esc_html_e('App Name', $langDomain);
        ?>