From faabc2a4d11e17439781bc058234b6227416d482 Mon Sep 17 00:00:00 2001 From: Psyphant Date: Thu, 3 Oct 2013 00:27:02 +0200 Subject: [PATCH] init commit --- .gitattributes | 22 + .gitignore | 215 ++++ beatzentrale/.gitignore | 8 + beatzentrale/404.php | 43 + beatzentrale/README | 83 ++ beatzentrale/archive-custom_type.php | 73 ++ beatzentrale/archive.php | 108 ++ beatzentrale/comments.php | 121 ++ beatzentrale/favicon.ico | Bin 0 -> 1150 bytes beatzentrale/favicon.png | Bin 0 -> 1223 bytes beatzentrale/footer.php | 22 + beatzentrale/functions.php | 165 +++ beatzentrale/header.php | 63 + beatzentrale/index.php | 82 ++ beatzentrale/library/admin.php | 131 ++ beatzentrale/library/bones.php | 409 ++++++ beatzentrale/library/css/ie.css | 1 + beatzentrale/library/css/login.css | 1 + beatzentrale/library/css/style.css | 1 + beatzentrale/library/custom-post-type.php | 122 ++ .../library/fonts/LilGrotesk-Regular.otf | Bin 0 -> 25876 bytes .../library/images/apple-icon-touch.png | Bin 0 -> 8439 bytes .../library/images/article-header-bg.png | Bin 0 -> 669 bytes .../library/images/body-header-bg.png | Bin 0 -> 19508 bytes .../library/images/custom-post-icon.png | Bin 0 -> 462 bytes beatzentrale/library/images/header/1.png | Bin 0 -> 133715 bytes beatzentrale/library/images/login-logo.png | Bin 0 -> 7019 bytes beatzentrale/library/images/logo.png | Bin 0 -> 7278 bytes beatzentrale/library/images/navi-bg.png | Bin 0 -> 591 bytes beatzentrale/library/images/nothing.gif | Bin 0 -> 1140 bytes beatzentrale/library/images/nothumb.gif | Bin 0 -> 1161 bytes .../library/images/sidebar-header-bg-1.png | Bin 0 -> 1015 bytes .../library/images/win8-tile-icon.png | Bin 0 -> 8048 bytes beatzentrale/library/js/cbpAnimatedHeader.js | 44 + beatzentrale/library/js/libs/classie.js | 80 ++ .../library/js/libs/modernizr.custom.min.js | 4 + beatzentrale/library/js/scripts.js | 108 ++ beatzentrale/library/less/_1030up.less | 10 + beatzentrale/library/less/_1240up.less | 11 + beatzentrale/library/less/_2x.less | 42 + beatzentrale/library/less/_481up.less | 111 ++ beatzentrale/library/less/_768up.less | 267 ++++ beatzentrale/library/less/_base.less | 1142 +++++++++++++++++ beatzentrale/library/less/_grid.less | 49 + beatzentrale/library/less/_mixins.less | 269 ++++ beatzentrale/library/less/_normalize.less | 536 ++++++++ beatzentrale/library/less/_print.less | 82 ++ beatzentrale/library/less/ie.less | 57 + beatzentrale/library/less/login.less | 72 ++ beatzentrale/library/less/style.less | 123 ++ beatzentrale/library/log.txt | 256 ++++ beatzentrale/library/translation/README | 18 + beatzentrale/library/translation/da_DK.po | 374 ++++++ beatzentrale/library/translation/de_DE.po | 385 ++++++ beatzentrale/library/translation/default.po | 371 ++++++ beatzentrale/library/translation/es_ES.po | 380 ++++++ beatzentrale/library/translation/fr_FR.po | 579 +++++++++ beatzentrale/library/translation/he_IL.po | 382 ++++++ beatzentrale/library/translation/hr.po | 548 ++++++++ beatzentrale/library/translation/it_IT.po | 376 ++++++ beatzentrale/library/translation/ja.po | 492 +++++++ beatzentrale/library/translation/nb_NO.po | 380 ++++++ beatzentrale/library/translation/nl_NL.po | 376 ++++++ beatzentrale/library/translation/pl_PL.po | 371 ++++++ beatzentrale/library/translation/pt_PT.po | 376 ++++++ beatzentrale/library/translation/ru_RU.po | 358 ++++++ beatzentrale/library/translation/sv_SE.po | 380 ++++++ .../library/translation/translation.php | 25 + beatzentrale/library/translation/zh_CN.po | 382 ++++++ beatzentrale/page-custom.php | 71 + beatzentrale/page.php | 59 + beatzentrale/screenshot.png | Bin 0 -> 78362 bytes beatzentrale/search.php | 71 + beatzentrale/sidebar.php | 17 + beatzentrale/single-custom_type.php | 78 ++ beatzentrale/single.php | 61 + beatzentrale/style.css | 79 ++ beatzentrale/taxonomy-custom_cat.php | 87 ++ 78 files changed, 12009 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 beatzentrale/.gitignore create mode 100644 beatzentrale/404.php create mode 100644 beatzentrale/README create mode 100644 beatzentrale/archive-custom_type.php create mode 100644 beatzentrale/archive.php create mode 100644 beatzentrale/comments.php create mode 100644 beatzentrale/favicon.ico create mode 100644 beatzentrale/favicon.png create mode 100644 beatzentrale/footer.php create mode 100644 beatzentrale/functions.php create mode 100644 beatzentrale/header.php create mode 100644 beatzentrale/index.php create mode 100644 beatzentrale/library/admin.php create mode 100644 beatzentrale/library/bones.php create mode 100644 beatzentrale/library/css/ie.css create mode 100644 beatzentrale/library/css/login.css create mode 100644 beatzentrale/library/css/style.css create mode 100644 beatzentrale/library/custom-post-type.php create mode 100644 beatzentrale/library/fonts/LilGrotesk-Regular.otf create mode 100644 beatzentrale/library/images/apple-icon-touch.png create mode 100644 beatzentrale/library/images/article-header-bg.png create mode 100644 beatzentrale/library/images/body-header-bg.png create mode 100644 beatzentrale/library/images/custom-post-icon.png create mode 100644 beatzentrale/library/images/header/1.png create mode 100644 beatzentrale/library/images/login-logo.png create mode 100644 beatzentrale/library/images/logo.png create mode 100644 beatzentrale/library/images/navi-bg.png create mode 100644 beatzentrale/library/images/nothing.gif create mode 100644 beatzentrale/library/images/nothumb.gif create mode 100644 beatzentrale/library/images/sidebar-header-bg-1.png create mode 100644 beatzentrale/library/images/win8-tile-icon.png create mode 100644 beatzentrale/library/js/cbpAnimatedHeader.js create mode 100644 beatzentrale/library/js/libs/classie.js create mode 100644 beatzentrale/library/js/libs/modernizr.custom.min.js create mode 100644 beatzentrale/library/js/scripts.js create mode 100644 beatzentrale/library/less/_1030up.less create mode 100644 beatzentrale/library/less/_1240up.less create mode 100644 beatzentrale/library/less/_2x.less create mode 100644 beatzentrale/library/less/_481up.less create mode 100644 beatzentrale/library/less/_768up.less create mode 100644 beatzentrale/library/less/_base.less create mode 100644 beatzentrale/library/less/_grid.less create mode 100644 beatzentrale/library/less/_mixins.less create mode 100644 beatzentrale/library/less/_normalize.less create mode 100644 beatzentrale/library/less/_print.less create mode 100644 beatzentrale/library/less/ie.less create mode 100644 beatzentrale/library/less/login.less create mode 100644 beatzentrale/library/less/style.less create mode 100644 beatzentrale/library/log.txt create mode 100644 beatzentrale/library/translation/README create mode 100644 beatzentrale/library/translation/da_DK.po create mode 100644 beatzentrale/library/translation/de_DE.po create mode 100644 beatzentrale/library/translation/default.po create mode 100644 beatzentrale/library/translation/es_ES.po create mode 100644 beatzentrale/library/translation/fr_FR.po create mode 100644 beatzentrale/library/translation/he_IL.po create mode 100644 beatzentrale/library/translation/hr.po create mode 100644 beatzentrale/library/translation/it_IT.po create mode 100644 beatzentrale/library/translation/ja.po create mode 100644 beatzentrale/library/translation/nb_NO.po create mode 100644 beatzentrale/library/translation/nl_NL.po create mode 100644 beatzentrale/library/translation/pl_PL.po create mode 100644 beatzentrale/library/translation/pt_PT.po create mode 100644 beatzentrale/library/translation/ru_RU.po create mode 100644 beatzentrale/library/translation/sv_SE.po create mode 100644 beatzentrale/library/translation/translation.php create mode 100644 beatzentrale/library/translation/zh_CN.po create mode 100644 beatzentrale/page-custom.php create mode 100644 beatzentrale/page.php create mode 100644 beatzentrale/screenshot.png create mode 100644 beatzentrale/search.php create mode 100644 beatzentrale/sidebar.php create mode 100644 beatzentrale/single-custom_type.php create mode 100644 beatzentrale/single.php create mode 100644 beatzentrale/style.css create mode 100644 beatzentrale/taxonomy-custom_cat.php diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..412eeda --- /dev/null +++ b/.gitattributes @@ -0,0 +1,22 @@ +# Auto detect text files and perform LF normalization +* text=auto + +# Custom for Visual Studio +*.cs diff=csharp +*.sln merge=union +*.csproj merge=union +*.vbproj merge=union +*.fsproj merge=union +*.dbproj merge=union + +# Standard to msysgit +*.doc diff=astextplain +*.DOC diff=astextplain +*.docx diff=astextplain +*.DOCX diff=astextplain +*.dot diff=astextplain +*.DOT diff=astextplain +*.pdf diff=astextplain +*.PDF diff=astextplain +*.rtf diff=astextplain +*.RTF diff=astextplain diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b9d6bd9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,215 @@ +################# +## Eclipse +################# + +*.pydevproject +.project +.metadata +bin/ +tmp/ +*.tmp +*.bak +*.swp +*~.nib +local.properties +.classpath +.settings/ +.loadpath + +# External tool builders +.externalToolBuilders/ + +# Locally stored "Eclipse launch configurations" +*.launch + +# CDT-specific +.cproject + +# PDT-specific +.buildpath + + +################# +## Visual Studio +################# + +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +# User-specific files +*.suo +*.user +*.sln.docstates + +# Build results + +[Dd]ebug/ +[Rr]elease/ +x64/ +build/ +[Bb]in/ +[Oo]bj/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +*_i.c +*_p.c +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.log +*.scc + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opensdf +*.sdf +*.cachefile + +# Visual Studio profiler +*.psess +*.vsp +*.vspx + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# NCrunch +*.ncrunch* +.*crunch*.local.xml + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.Publish.xml +*.pubxml + +# NuGet Packages Directory +## TODO: If you have NuGet Package Restore enabled, uncomment the next line +#packages/ + +# Windows Azure Build Output +csx +*.build.csdef + +# Windows Store app package directory +AppPackages/ + +# Others +sql/ +*.Cache +ClientBin/ +[Ss]tyle[Cc]op.* +~$* +*~ +*.dbmdl +*.[Pp]ublish.xml +*.pfx +*.publishsettings + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file to a newer +# Visual Studio version. Backup files are not needed, because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm + +# SQL Server files +App_Data/*.mdf +App_Data/*.ldf + +############# +## Windows detritus +############# + +# Windows image file caches +Thumbs.db +ehthumbs.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Mac crap +.DS_Store + + +############# +## Python +############# + +*.py[co] + +# Packages +*.egg +*.egg-info +dist/ +build/ +eggs/ +parts/ +var/ +sdist/ +develop-eggs/ +.installed.cfg + +# Installer logs +pip-log.txt + +# Unit test / coverage reports +.coverage +.tox + +#Translations +*.mo + +#Mr Developer +.mr.developer.cfg diff --git a/beatzentrale/.gitignore b/beatzentrale/.gitignore new file mode 100644 index 0000000..52fdb56 --- /dev/null +++ b/beatzentrale/.gitignore @@ -0,0 +1,8 @@ + +Bones.esproj/user.Eddie.espressostorage + +Bones.esproj/Project.espressostorage + +.project + +.DS_Store diff --git a/beatzentrale/404.php b/beatzentrale/404.php new file mode 100644 index 0000000..fd0b2fe --- /dev/null +++ b/beatzentrale/404.php @@ -0,0 +1,43 @@ + + +
+ +
+ +
+ +
+ +
+ +

+ +
+ +
+ +

+ +
+ + + +
+ +

+ +
+ +
+ +
+ +
+ +
+ + diff --git a/beatzentrale/README b/beatzentrale/README new file mode 100644 index 0000000..fac711e --- /dev/null +++ b/beatzentrale/README @@ -0,0 +1,83 @@ +/****************************************************************** +Beatzentrale +A Lightweight Wordpress Development Theme + +_______________________________________________________________ +HEADS UP!!! +Bones & Bones (Responsive Edition) have been merged. +_______________________________________________________________ + +Bones is designed to make the life of developers easier. It's built +using HTML5 & has a strong semantic foundation. It was updated recently +using some of the HTML5 Boilerplate's recommended markup and setup. +It's constantly growing so be sure to check back often if you are a +frequent user. I'm always open to contribution. :) + +Designed by Eddie Machado +http://themble.com/bones + +License: WTFPL +License URI: http://sam.zoy.org/wtfpl/ +Are You Serious? Yes. + +Special Thanks to: +Paul Irish & the HTML5 Boilerplate +Yoast for some WP functions & optimization ideas +Andrew Rogers for code optimization +David Dellanave for speed & code optimization +and several other developers. :) + +Submit Bugs & or Fixes: +https://github.com/eddiemachado/bones/issues + +To view Release & Update Notes, read the log.txt file inside +the library folder. + +******************************************************************/ + +/* v1.25 update */ +- updated custom post type page for translation +- added => to responsive jquery +- cleaned up theme tags (which make NO sense, but are best practice, go figure) +- updated html element to match hb5 +- fixed echo problem on admin.php +- updated normalize (LESS also had some missing styles so I added them) +- GetComputedStyle fix for IE (for responsive js) +- cleaned up mixins (border radius) +- added translations! (Chinese, Spanish) + +/* v1.2 HUGE update */ +- merge responsive version with classic +- remove post title from read more link (it's way too long) +- removed readme.txt (it was pointless) +- organized info for each file called in on the functions page +- added custom gravatar call in comments +- i'm leaving jQuery to a plugin (that way I'm not providing dated jQuery) +- added translation folder +- put everything inside stuff so it's easier to be translated +- added an identifier in each 404 area so you know what template is showing +- remove custom walker. I think that's better left for you guys to do +- fixed some spelling errors +- added some translation options in the comments file +- added role=navigation to footer links +- deleted image.php (who really uses that anyway) +- added sidebar to search.php +- added class to custom post type title +- added link to custom meta box +- removed selectivizr +- updated html elements with new classes for IE +- added new mobile meta tags +- removed pinned site meta tag for IE9 +- merged base.css into style.css for one less call in the header +- added styleguide page and styles (oh yea!) +- added nav class to both menus +- removed "Powered by Wordpress & Bones" from footer, because let's face it: we all delete this anyway. +- added button class to submit comment button +- removed html5 placeholder fallback (you should be using Gravity Forms) +- added slug and rewrite to custom post type for easier urls +- renamed the border radius mixins so they were easer to remember +- removed duplicate box shadow mixin +- deleted the plugins.php file +- facebook og:meta can be better handled by a plugin (or Yoast's SEO plugin) +- rel=me can also be handled by SEO plugin or another plugin +- removed author.php (you can use archive.php or add it yourself) diff --git a/beatzentrale/archive-custom_type.php b/beatzentrale/archive-custom_type.php new file mode 100644 index 0000000..829c282 --- /dev/null +++ b/beatzentrale/archive-custom_type.php @@ -0,0 +1,73 @@ + + +
+ +
+ +
+ +

+ + + +
role="article"> + +
+ +

+ + +
+ +
+ + + +
+ +
+ +
+ +
+ + + + + + + + + + + +
+
+

+
+
+

+
+
+

+
+
+ + + +
+ + + +
+ +
+ + diff --git a/beatzentrale/archive.php b/beatzentrale/archive.php new file mode 100644 index 0000000..860aa02 --- /dev/null +++ b/beatzentrale/archive.php @@ -0,0 +1,108 @@ + + +
+ +
+ +
+ + +

+ +

+ + +

+ +

+ + post_author; + ?> +

+ + + +

+ +

+ +

+ + +

+ +

+ + +

+ +

+ + + + +
role="article"> + +
+ +

+ + +
+ +
+ + + + + +
+ +
+ +
+ +
+ + + + + + + + + + + +
+
+

+
+
+

+
+
+

+
+
+ + + +
+ + + +
+ +
+ + diff --git a/beatzentrale/comments.php b/beatzentrale/comments.php new file mode 100644 index 0000000..472384b --- /dev/null +++ b/beatzentrale/comments.php @@ -0,0 +1,121 @@ + +
+

+
+ + + + + +

No Responses', 'beattheme'), __('One Response', 'beattheme'), _n('% Response', '% Responses', get_comments_number(),'beattheme') );?> to “

+ + + +
    + +
+ + + + + + + + + + + + + + + + + + + + +
+ +

+ +
+

+
+ + +
+

">', '' ); ?>

+
+ + +
+ + + +

. ">

+ + + +
    + +
  • + + /> +
  • + +
  • + + /> + +
  • + +
  • + + +
  • + +
+ + + +

+ +

+ + +

+ +
+

XHTML: :

+
+ + ID); ?> + +
+ + +
+ + diff --git a/beatzentrale/favicon.ico b/beatzentrale/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..c8f674095ebab85bf2c778c3c39b3ecc45b8eb90 GIT binary patch literal 1150 zcmaJ>Sx-|z6drG~n|bjlrJk zEPFB%@y|%YWN$6z2jrl+(U_BruP-hi#K}ksX{rUST#Q}6@5qQu^q$Mrka-CsZI!T_ zrZ7LGgvIa;n(BfBJmW-T7&Wr=a3~aKnH)%J%De91@I9g&*v&t&vSP#d*f8`%{g}|m zA<0gTiqR&xW415NoYOUw)Nxq0>lIaSJJ(>bEJ3MgM~A!_GZTa8D197-XB-T@l5Bo% zhS$~?Vq<*~UY`eEj|Xe3R&2Xn7*&WF@2D86iVPjag!uV;K4xLnVuauCK{yFzhE+(U|X?bY+R4Nu2%Glvi`zL^HVqZ`DKOo zF=x_z?_-B6R@5*!Ax~_2F3rFMD%uk@at1 zKV^Il22~B#YzuHZ*0H%f2kVp;<4Q5qRk>)&ONr7C(=pTjAN|rE_K7nwB&)#p8Ug4W zq4{Mhm@XqZC~tMOpoP;fHwWHr*YQ!s=OWr8JDg`-2VyxpZ`- zKp7Bapo9TF7@v4prbZ&hJ(w6{VqA>jfd^kS5wjq^sqf;{kQfbaYK#daiwVnSh(Z{` zn0%F$7HGE?%B3x|z4vgd(2c+Tn?{m4)ZsEMLfD!cm@(FkniuCOE~z}<}r8u3S~irxwtG}0OTlz z!|_d}r&cHPuhkh)%$>S>&vhGf<0DXOG%%P>;J9)Be<@%U6g_A?6}4I{8V!eccOVLJ zh@uEdjAMIGK%LeIy}^XVscWH?>1$AFH1&F;g(C*4>Crz)S91YyhV)a4utt<5e$BaZ zv$gXD`?(A6fZy`V^s?y8MHc)sHG$uUK9Yj>y+eFlEUK)qnoJrs;&E|CIUCY*n#F0@ zqE@Tl4({w+(CaiO1xbSwrInC~cCB6ygV6-8(vI25acrzD{H zsj0195(EK@&Xq?8(CDbcel&`^9yea??#547uMSU5PQEd5<2p7rH?X_QLyX5M*D5^S z+zPAB4z7YjM@RcFW20l;eZ9R{URr|PZqEonrZAHh8IAI9df$5=k#L0BK9r7;z;;lY zUs#m>nw*>K~ zgM-PLpo}A4tJT8ocEe~gp|`IuHvnyCA40z1^ZER@W@bR2vf<9c0_Ax*dFUuJftOp1 zKt#e}FgEfvig~Nmy59eB|C8+<9kSu#yBE>fnYfQq!73v;>y7BxF32E1&@-L3!KdHHU3yoYQnAQX$1U!nFaYYOfV2CBm=I!NF+vW zsB<_R;CFa5Ha6fKwPwn8P*4V36#Z&xX(>34lRZi)X&_ lL`zFV_2B=5tmHod1^^O43nFOf12_Nx002ovPDHLkV1h?RK*s<8 literal 0 HcmV?d00001 diff --git a/beatzentrale/footer.php b/beatzentrale/footer.php new file mode 100644 index 0000000..040d812 --- /dev/null +++ b/beatzentrale/footer.php @@ -0,0 +1,22 @@ +
+ + + +
+ + + + + + + + + diff --git a/beatzentrale/functions.php b/beatzentrale/functions.php new file mode 100644 index 0000000..1074fca --- /dev/null +++ b/beatzentrale/functions.php @@ -0,0 +1,165 @@ + from around images + - customizing the post excerpt + - custom google+ integration + - adding custom fields to user profiles +*/ +require_once('library/bones.php'); // if you remove this, bones will break +/* +2. library/custom-post-type.php + - an example custom post type + - example custom taxonomy (like categories) + - example custom taxonomy (like tags) +*/ +require_once('library/custom-post-type.php'); // you can disable this if you like +/* +3. library/admin.php + - removing some default WordPress dashboard widgets + - an example custom dashboard widget + - adding custom login css + - changing text in footer of admin +*/ +// require_once('library/admin.php'); // this comes turned off by default +/* +4. library/translation/translation.php + - adding support for other languages +*/ +// require_once('library/translation/translation.php'); // this comes turned off by default + +/************* THUMBNAIL SIZE OPTIONS *************/ + +// Thumbnail sizes +add_image_size( 'bones-thumb-600', 600, 150, true ); +add_image_size( 'bones-thumb-300', 300, 100, true ); +/* +to add more sizes, simply copy a line from above +and change the dimensions & name. As long as you +upload a "featured image" as large as the biggest +set width or height, all the other sizes will be +auto-cropped. + +To call a different size, simply change the text +inside the thumbnail function. + +For example, to call the 300 x 300 sized image, +we would use the function: + +for the 600 x 100 image: + + +You can change the names and dimensions to whatever +you like. Enjoy! +*/ + +/************* ACTIVE SIDEBARS ********************/ + +// Sidebars & Widgetizes Areas +function bones_register_sidebars() { + register_sidebar(array( + 'id' => 'sidebar1', + 'name' => __('Sidebar 1', 'beattheme'), + 'description' => __('The first (primary) sidebar.', 'beattheme'), + 'before_widget' => '
', + 'after_widget' => '
', + 'before_title' => '

', + 'after_title' => '

', + )); + + /* + to add more sidebars or widgetized areas, just copy + and edit the above sidebar code. In order to call + your new sidebar just use the following code: + + Just change the name to whatever your new + sidebar's id is, for example: + + register_sidebar(array( + 'id' => 'sidebar2', + 'name' => __('Sidebar 2', 'beattheme'), + 'description' => __('The second (secondary) sidebar.', 'beattheme'), + 'before_widget' => '
', + 'after_widget' => '
', + 'before_title' => '

', + 'after_title' => '

', + )); + + To call the sidebar in your template, you can just copy + the sidebar.php file and rename it to your sidebar's name. + So using the above example, it would be: + sidebar-sidebar2.php + + */ +} // don't remove this bracket! + +/************* COMMENT LAYOUT *********************/ + +// Comment Layout +function bones_comments($comment, $args, $depth) { + $GLOBALS['comment'] = $comment; ?> +
  • > +
    +
    + ' ); + */ + ?> + + + + + %s', 'beattheme'), get_comment_author_link()) ?> + + +
    + comment_approved == '0') : ?> +
    +

    +
    + +
    + +
    + $depth, 'max_depth' => $args['max_depth']))) ?> +
    + + + + + + '; + return $form; +} // don't remove this bracket! + + +?> diff --git a/beatzentrale/header.php b/beatzentrale/header.php new file mode 100644 index 0000000..13134ad --- /dev/null +++ b/beatzentrale/header.php @@ -0,0 +1,63 @@ + + + + + + class="no-js"> + + + + + + + + <?php wp_title(''); ?> + + + + + + + + + + + + + + + + + + + + + + + + + + > + +
    + + diff --git a/beatzentrale/index.php b/beatzentrale/index.php new file mode 100644 index 0000000..e6e940c --- /dev/null +++ b/beatzentrale/index.php @@ -0,0 +1,82 @@ + + +
    + +
    + +
    +
    +
    +
    +

    Töne aus der Szene

    +

    Blog

    +
    +
    + +
    + + + + +
    role="article"> + +
    + +

    + + +
    + +
    + +
    + +
    +

    ' . __('Tags:', 'beattheme') . ' ', ', ', ''); ?>

    + +
    + + + +
    + + + + + + + + + + + +
    +
    +

    +
    +
    +

    +
    +
    +

    +
    +
    + + + +
    + + + +
    + +
    + + diff --git a/beatzentrale/library/admin.php b/beatzentrale/library/admin.php new file mode 100644 index 0000000..0e7831a --- /dev/null +++ b/beatzentrale/library/admin.php @@ -0,0 +1,131 @@ +get_item_quantity(7); // specify number of items + $items = $feed->get_items(0, $limit); // create an array of items + } + if ($limit == 0) echo '
    The RSS Feed is either empty or unavailable.
    '; // fallback message + else foreach ($items as $item) { ?> + +

    + + get_title(); ?> + +

    +

    + get_description(), 0, 200); ?> +

    + Developed by Your Site Name. Built using Bones.', 'beattheme'); +} + +// adding it to the admin area +add_filter('admin_footer_text', 'bones_custom_admin_footer'); + +?> diff --git a/beatzentrale/library/bones.php b/beatzentrale/library/bones.php new file mode 100644 index 0000000..03e962a --- /dev/null +++ b/beatzentrale/library/bones.php @@ -0,0 +1,409 @@ +widgets['WP_Widget_Recent_Comments'])) { + remove_action('wp_head', array($wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style')); + } +} + +// remove injected CSS from gallery +function bones_gallery_style($css) { + return preg_replace("!!s", '', $css); +} + + +/********************* +SCRIPTS & ENQUEUEING +*********************/ + +// loading modernizr and jquery, and reply script +function bones_scripts_and_styles() { + global $wp_styles; // call global $wp_styles variable to add conditional wrapper around ie stylesheet the WordPress way + if (!is_admin()) { + + // modernizr (without media query polyfill) + wp_register_script( 'bones-modernizr', get_stylesheet_directory_uri() . '/library/js/libs/modernizr.custom.min.js', array(), '2.5.3', false ); + + // classie + wp_register_script( 'bones-classie', get_stylesheet_directory_uri() . '/library/js/libs/classie.js', array(), '', false ); + + // register main stylesheet + wp_register_style( 'bones-stylesheet', get_stylesheet_directory_uri() . '/library/css/style.css', array(), '', 'all' ); + + // ie-only style sheet + wp_register_style( 'bones-ie-only', get_stylesheet_directory_uri() . '/library/css/ie.css', array(), '' ); + + // comment reply script for threaded comments + if ( is_singular() AND comments_open() AND (get_option('thread_comments') == 1)) { + wp_enqueue_script( 'comment-reply' ); + } + + //adding scripts file in the footer + wp_register_script( 'bones-js', get_stylesheet_directory_uri() . '/library/js/scripts.js', array( 'jquery' ), '', true ); + + //adding scripts file in the footer + wp_register_script( 'bones-header', get_stylesheet_directory_uri() . '/library/js/cbpAnimatedHeader.js', array(), '', true ); + + // enqueue styles and scripts + wp_enqueue_script( 'bones-modernizr' ); + wp_enqueue_script( 'bones-classie' ); + wp_enqueue_style( 'bones-stylesheet' ); + wp_enqueue_style('bones-ie-only'); + + $wp_styles->add_data( 'bones-ie-only', 'conditional', 'lt IE 9' ); // add conditional wrapper around ie stylesheet + + /* + I recommend using a plugin to call jQuery + using the google cdn. That way it stays cached + and your site will load faster. + */ + wp_enqueue_script( 'jquery' ); + wp_enqueue_script( 'bones-js' ); + wp_enqueue_script( 'bones-header' ); + + } +} + +/********************* +THEME SUPPORT +*********************/ + +// Adding WP 3+ Functions & Theme Support +function bones_theme_support() { + + // wp thumbnails (sizes handled in functions.php) + add_theme_support('post-thumbnails'); + + // default thumb size + set_post_thumbnail_size(125, 125, true); + + // wp custom background (thx to @bransonwerner for update) + add_theme_support( 'custom-background', + array( + 'default-image' => '', // background image default + 'default-color' => '', // background color default (dont add the #) + 'wp-head-callback' => '_custom_background_cb', + 'admin-head-callback' => '', + 'admin-preview-callback' => '' + ) + ); + + // rss thingy + add_theme_support('automatic-feed-links'); + + // to add header image support go here: http://themble.com/support/adding-header-background-image-support/ + + // adding post format support + add_theme_support( 'post-formats', + array( + 'aside', // title less blurb + 'gallery', // gallery of images + 'link', // quick link to other site + 'image', // an image + 'quote', // a quick quote + 'status', // a Facebook like status update + 'video', // video + 'audio', // audio + 'chat' // chat transcript + ) + ); + + // wp menus + add_theme_support( 'menus' ); + + // registering wp3+ menus + register_nav_menus( + array( + 'main-nav' => __( 'The Main Menu', 'beattheme' ), // main nav in header + 'footer-links' => __( 'Footer Links', 'beattheme' ) // secondary nav in footer + ) + ); +} /* end bones theme support */ + + +/********************* +MENUS & NAVIGATION +*********************/ + +// the main menu +function bones_main_nav() { + // display the wp3 menu if available + wp_nav_menu(array( + 'container' => false, // remove nav container + 'container_class' => 'menu clearfix', // class of container (should you choose to use it) + 'menu' => __( 'The Main Menu', 'beattheme' ), // nav name + 'menu_class' => 'nav top-nav clearfix', // adding custom nav class + 'theme_location' => 'main-nav', // where it's located in the theme + 'before' => '', // before the menu + 'after' => '', // after the menu + 'link_before' => '', // before each link + 'link_after' => '', // after each link + 'depth' => 0, // limit the depth of the nav + 'fallback_cb' => 'bones_main_nav_fallback' // fallback function + )); +} /* end bones main nav */ + +// the footer menu (should you choose to use one) +function bones_footer_links() { + // display the wp3 menu if available + wp_nav_menu(array( + 'container' => '', // remove nav container + 'container_class' => 'footer-links clearfix', // class of container (should you choose to use it) + 'menu' => __( 'Footer Links', 'beattheme' ), // nav name + 'menu_class' => 'nav footer-nav clearfix', // adding custom nav class + 'theme_location' => 'footer-links', // where it's located in the theme + 'before' => '', // before the menu + 'after' => '', // after the menu + 'link_before' => '', // before each link + 'link_after' => '', // after each link + 'depth' => 0, // limit the depth of the nav + 'fallback_cb' => 'bones_footer_links_fallback' // fallback function + )); +} /* end bones footer link */ + +// this is the fallback for header menu +function bones_main_nav_fallback() { + wp_page_menu( array( + 'show_home' => false, + 'menu_class' => 'nav top-nav clearfix', // adding custom nav class + 'include' => '', + 'exclude' => '', + 'echo' => true, + 'link_before' => '', // before each link + 'link_after' => '' // after each link + ) ); +} + +// this is the fallback for footer menu +function bones_footer_links_fallback() { + /* you can put a default here if you like */ +} + +/********************* +RELATED POSTS FUNCTION +*********************/ + +// Related Posts Function (call using bones_related_posts(); ) +function bones_related_posts() { + echo '