Sha256: fb8da0ca86bb661f5443766c84723c1404edda254ffb52c947f2ab674b070063

Contents?: true

Size: 560 Bytes

Versions: 9

Compression:

Stored size: 560 Bytes

Contents

<?php

// WordPress function stubs

function get_template_directory() {
  return Wordless::join_paths(getcwd(), "wp-content", "themes", WordlessBridge::$theme_name);
}

function __($string) {
  return $string;
}

class WordlessBridge {
  public static $current_dir;
  public static $plugin_dir;
  public static $theme_name = 'stub';

  public static function initialize() {
    self::$current_dir = getcwd();
    self::$plugin_dir = self::$current_dir . '/wp-content/plugins/wordless';

    require_once self::$plugin_dir . "/wordless/wordless.php";
  }
}

?>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
wordless-1.1.6 lib/wordless/wordless_bridge.php
wordless-1.1.5 lib/wordless/wordless_bridge.php
wordless-1.1.2 lib/wordless/wordless_bridge.php
wordless-1.1.1 lib/wordless/wordless_bridge.php
wordless-1.1.0 lib/wordless/wordless_bridge.php
wordless-1.0.0 lib/wordless/wordless_bridge.php
wordless-0.4.1 lib/wordless/wordless_bridge.php
wordless-0.4.0 lib/wordless/wordless_bridge.php
wordless-0.3.0 lib/wordless/wordless_bridge.php