-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 33e1e86
Showing
302 changed files
with
40,754 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
configs/env.*.php | ||
*.log | ||
.htaccess | ||
sitemap.xml | ||
sitemap.xml.gz | ||
content/advanced-cache.php | ||
content/backup-db/ | ||
content/backups/ | ||
content/blogs.dir/ | ||
content/cache/ | ||
content/upgrade/ | ||
content/uploads/ | ||
content/wp-cache-config.php | ||
|
||
#VIM | ||
[._]*.s[a-w][a-z] | ||
[._]s[a-w][a-z] | ||
*.un~ | ||
Session.vim | ||
.netrwhist | ||
*~ | ||
# | ||
#SVN | ||
.svn/ | ||
# | ||
#OSX | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two \r | ||
Icon | ||
|
||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear on external disk | ||
.Spotlight-V100 | ||
.Trashes | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
|
||
#Linux | ||
.directory | ||
|
||
# Windows image file caches | ||
Thumbs.db | ||
ehthumbs.db | ||
|
||
# Folder config file | ||
Desktop.ini | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# Windows Installer files | ||
*.cab | ||
*.msi | ||
*.msm | ||
*.msp | ||
|
||
# Windows shortcuts | ||
*.lnk | ||
|
||
#Vagrant | ||
.vagrant/ | ||
|
||
#PhpStrom | ||
.idea/ | ||
/*.iml | ||
*.ipr | ||
*.iws | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[submodule "WordPress"] | ||
path = WordPress | ||
url = git@github.com:WordPress/WordPress.git | ||
branch = master |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<?php | ||
|
||
/** Setup ENViornments */ | ||
$env_files = glob(dirname( __FILE__ ) . '/env.*.php'); | ||
if(file_exists($env_files[0])) { | ||
define('ENV', str_replace('env.', '', basename($env_files[0], '.php'))); | ||
include_once $env_files[0]; | ||
} else { | ||
define('ENV', 'production'); | ||
} | ||
|
||
define('APP_ROOT', dirname(dirname(__FILE__))); | ||
|
||
define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST']); | ||
define('WP_SITEURL', WP_HOME . '/WordPress'); | ||
define('WP_CONTENT_DIR', APP_ROOT . '/content'); | ||
define('WP_CONTENT_URL', WP_HOME . '/content'); | ||
|
||
/** MySQL settings - You can get this info from your web host */ | ||
/** The name of the database for WordPress */ | ||
define('DB_NAME', 'database_name_here'); | ||
|
||
/** MySQL database username */ | ||
define('DB_USER', 'username_here'); | ||
|
||
/** MySQL database password */ | ||
define('DB_PASSWORD', 'password_here'); | ||
|
||
/** MySQL hostname */ | ||
define('DB_HOST', 'localhost'); | ||
|
||
/** | ||
* WordPress Database Table prefix. | ||
* | ||
* You can have multiple installations in one database if you give each a unique | ||
* prefix. Only numbers, letters, and underscores please! | ||
*/ | ||
$table_prefix = 'wp_'; | ||
|
||
/** Database Charset to use in creating database tables. */ | ||
define('DB_CHARSET', 'utf8'); | ||
|
||
/** The Database Collate type. Don't change this if in doubt. */ | ||
define('DB_COLLATE', ''); | ||
|
||
/** | ||
* For developers: WordPress debugging mode. | ||
* | ||
* Change this to true to enable the display of notices during development. | ||
* It is strongly recommended that plugin and theme developers use WP_DEBUG | ||
* in their development environments. | ||
*/ | ||
define('WP_DEBUG', false); | ||
|
||
/**#@+ | ||
* Authentication Unique Keys and Salts. | ||
* | ||
* Change these to different unique phrases! | ||
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service} | ||
* You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again. | ||
* | ||
* @since 2.6.0 | ||
*/ | ||
define('AUTH_KEY', 'put your unique phrase here'); | ||
define('SECURE_AUTH_KEY', 'put your unique phrase here'); | ||
define('LOGGED_IN_KEY', 'put your unique phrase here'); | ||
define('NONCE_KEY', 'put your unique phrase here'); | ||
define('AUTH_SALT', 'put your unique phrase here'); | ||
define('SECURE_AUTH_SALT', 'put your unique phrase here'); | ||
define('LOGGED_IN_SALT', 'put your unique phrase here'); | ||
define('NONCE_SALT', 'put your unique phrase here'); | ||
|
||
/**#@-*/ | ||
|
||
/* That's all, stop editing! Happy blogging. */ | ||
|
||
/** Absolute path to the WordPress directory. */ | ||
if ( !defined('ABSPATH') ) | ||
define('ABSPATH', dirname(__FILE__) . '/'); | ||
|
||
/** Sets up WordPress vars and included files. */ | ||
require_once(ABSPATH . 'wp-settings.php'); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
/** MySQL settings - You can get this info from your web host */ | ||
/** The name of the database for WordPress */ | ||
define('DB_NAME', 'database_name_here'); | ||
|
||
/** MySQL database username */ | ||
define('DB_USER', 'username_here'); | ||
|
||
/** MySQL database password */ | ||
define('DB_PASSWORD', 'password_here'); | ||
|
||
/** MySQL hostname */ | ||
define('DB_HOST', 'localhost'); | ||
|
||
/** | ||
* WordPress Database Table prefix. | ||
* | ||
* You can have multiple installations in one database if you give each a unique | ||
* prefix. Only numbers, letters, and underscores please! | ||
*/ | ||
$table_prefix = 'wp_'; | ||
|
||
/** Database Charset to use in creating database tables. */ | ||
define('DB_CHARSET', 'utf8'); | ||
|
||
/** The Database Collate type. Don't change this if in doubt. */ | ||
define('DB_COLLATE', ''); | ||
|
||
/** | ||
* For developers: WordPress debugging mode. | ||
* | ||
* Change this to true to enable the display of notices during development. | ||
* It is strongly recommended that plugin and theme developers use WP_DEBUG | ||
* in their development environments. | ||
*/ | ||
define('WP_DEBUG', false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?php | ||
// Silence is golden. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<?php | ||
/** | ||
* @package Hello_Dolly | ||
* @version 1.6 | ||
*/ | ||
/* | ||
Plugin Name: Hello Dolly | ||
Plugin URI: http://wordpress.org/plugins/hello-dolly/ | ||
Description: This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from <cite>Hello, Dolly</cite> in the upper right of your admin screen on every page. | ||
Author: Matt Mullenweg | ||
Version: 1.6 | ||
Author URI: http://ma.tt/ | ||
*/ | ||
|
||
function hello_dolly_get_lyric() { | ||
/** These are the lyrics to Hello Dolly */ | ||
$lyrics = "Hello, Dolly | ||
Well, hello, Dolly | ||
It's so nice to have you back where you belong | ||
You're lookin' swell, Dolly | ||
I can tell, Dolly | ||
You're still glowin', you're still crowin' | ||
You're still goin' strong | ||
We feel the room swayin' | ||
While the band's playin' | ||
One of your old favourite songs from way back when | ||
So, take her wrap, fellas | ||
Find her an empty lap, fellas | ||
Dolly'll never go away again | ||
Hello, Dolly | ||
Well, hello, Dolly | ||
It's so nice to have you back where you belong | ||
You're lookin' swell, Dolly | ||
I can tell, Dolly | ||
You're still glowin', you're still crowin' | ||
You're still goin' strong | ||
We feel the room swayin' | ||
While the band's playin' | ||
One of your old favourite songs from way back when | ||
Golly, gee, fellas | ||
Find her a vacant knee, fellas | ||
Dolly'll never go away | ||
Dolly'll never go away | ||
Dolly'll never go away again"; | ||
|
||
// Here we split it into lines | ||
$lyrics = explode( "\n", $lyrics ); | ||
|
||
// And then randomly choose a line | ||
return wptexturize( $lyrics[ mt_rand( 0, count( $lyrics ) - 1 ) ] ); | ||
} | ||
|
||
// This just echoes the chosen line, we'll position it later | ||
function hello_dolly() { | ||
$chosen = hello_dolly_get_lyric(); | ||
echo "<p id='dolly'>$chosen</p>"; | ||
} | ||
|
||
// Now we set that function up to execute when the admin_notices action is called | ||
add_action( 'admin_notices', 'hello_dolly' ); | ||
|
||
// We need some CSS to position the paragraph | ||
function dolly_css() { | ||
// This makes sure that the positioning is also good for right-to-left languages | ||
$x = is_rtl() ? 'left' : 'right'; | ||
|
||
echo " | ||
<style type='text/css'> | ||
#dolly { | ||
float: $x; | ||
padding-$x: 15px; | ||
padding-top: 5px; | ||
margin: 0; | ||
font-size: 11px; | ||
} | ||
</style> | ||
"; | ||
} | ||
|
||
add_action( 'admin_head', 'dolly_css' ); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?php | ||
// Silence is golden. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?php | ||
// Silence is golden. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
/** | ||
* Template for displaying 404 pages (Not Found) | ||
* | ||
* @package WordPress | ||
* @subpackage Twenty_Eleven | ||
* @since Twenty Eleven 1.0 | ||
*/ | ||
|
||
get_header(); ?> | ||
|
||
<div id="primary"> | ||
<div id="content" role="main"> | ||
|
||
<article id="post-0" class="post error404 not-found"> | ||
<header class="entry-header"> | ||
<h1 class="entry-title"><?php _e( 'This is somewhat embarrassing, isn’t it?', 'twentyeleven' ); ?></h1> | ||
</header> | ||
|
||
<div class="entry-content"> | ||
<p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching, or one of the links below, can help.', 'twentyeleven' ); ?></p> | ||
|
||
<?php get_search_form(); ?> | ||
|
||
<?php the_widget( 'WP_Widget_Recent_Posts', array( 'number' => 10 ), array( 'widget_id' => '404' ) ); ?> | ||
|
||
<div class="widget"> | ||
<h2 class="widgettitle"><?php _e( 'Most Used Categories', 'twentyeleven' ); ?></h2> | ||
<ul> | ||
<?php wp_list_categories( array( 'orderby' => 'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10 ) ); ?> | ||
</ul> | ||
</div> | ||
|
||
<?php | ||
/* translators: %1$s: smilie */ | ||
$archive_content = '<p>' . sprintf( __( 'Try looking in the monthly archives. %1$s', 'twentyeleven' ), convert_smilies( ':)' ) ) . '</p>'; | ||
the_widget( 'WP_Widget_Archives', array('count' => 0 , 'dropdown' => 1 ), array( 'after_title' => '</h2>'.$archive_content ) ); | ||
?> | ||
|
||
<?php the_widget( 'WP_Widget_Tag_Cloud' ); ?> | ||
|
||
</div><!-- .entry-content --> | ||
</article><!-- #post-0 --> | ||
|
||
</div><!-- #content --> | ||
</div><!-- #primary --> | ||
|
||
<?php get_footer(); ?> |
Oops, something went wrong.