<commit_before><?php
/**
 * Off Canvas Layout
 *     for WoW Character Info
 *
 * Licensed under The MIT License
 *
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @author     		<NAME> (http://www.chrisvogt.me)
 * @link          https://github.com/chrisvogt/wowchar-info WoWChar Info
 * @package       WowCharInfo.View.Layout.offcanvas
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
 */ ?><!DOCTYPE html>
<html lang="en">
  <head>
    <?php echo $this->Html->charset(); ?>
<!--
      brought to you by...
 ██████╗ ██╗██╗   ██╗ ██████╗
██╔════╝███║██║   ██║██╔═████╗
██║     ╚██║██║   ██║██║██╔██║
██║      ██║╚██╗ ██╔╝████╔╝██║
╚██████╗ ██║ ╚████╔╝ ╚██████╔╝
 ╚═════╝ ╚═╝  ╚═══╝   ╚═════╝
     chrisvogt.me | @c1v0
   -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>WoW Character Viewer Info</title>

    <meta name="description" content="Find and share your World of Warcraft character stats online with this free, open-source tool.">
    <meta name="author" content="<NAME>">
    <?php
    if (isset($character)) :
			echo $this->CharOg->build($character);
		else:
      echo $this->Html->meta(['property' => 'og:image', 'content' => $this->Html->Url('/img/og-banner.jpg', true)]);
			echo $this->Html->meta(['property' => 'og:description', 'content' => 'Find and share your World of Warcraft character stats online with this free, open-source tool.']);
			echo $this->Html->meta(['property' => 'og:author', 'content' => 'CHR1SV0GT']);
		endif; ?>

    <link rel="shortcut icon" href="favicon.ico">
    <link rel="apple-touch-icon" href="touch-icon-iphone.png">
    <link rel="apple-touch-icon" sizes="76x76" href="touch-icon-ipad.png">
    <link rel="apple-touch-icon" sizes="120x120" href="touch-icon-iphone-retina.png">
    <link rel="apple-touch-icon" sizes="152x152" href="touch-icon-ipad-retina.png">

    <link href="//maxcdn.bootstrapcdn.com/bootswatch/3.3.4/darkly/bootstrap.min.css" rel="stylesheet">
    <link href="components/jasny-bootstrap/dist/css/jasny-bootstrap.min.css" rel="stylesheet">
    <link href="components/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <link href='http://fonts.googleapis.com/css?family=Raleway:300' rel='stylesheet' type='text/css'>
    <link href="components/chosen/chosen.min.css" rel="stylesheet">
    <link href="css/wowchar.css" rel="stylesheet">

    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    <?php if ($this->request->here !== '/') echo $this->Element('sidebar'); ?>

    <a href="https://github.com/chrisvogt/wowchar-info" id="ghRibbon">
      <img src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png">
    </a>

		<?php if ($this->request->here == '/') echo $this->Element('jumbotron'); ?>

    <div class="container">
			<?php echo $this->Session->flash(); ?>
			<?php echo $this->fetch('content'); ?>
			<footer>
				<p><img class="pull-right" src="http://cakephp.org/img/default/cake-logo-smaller2.png" />Made with ♥ by <a href="https://twitter.com/c1v0">@c1v0</a>.</p>
			</footer>
    </div><!-- /.container -->

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="components/jquery/dist/jquery.min.js"></script>
    <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
    <script src="components/jasny-bootstrap/dist/js/jasny-bootstrap.min.js"></script>
    <script src="components/jasny-bootstrap/js/offcanvas.js"></script>
    <script src="components/share-button/build/share.min.js"></script>
    <script src="components/zeroclipboard/dist/ZeroClipboard.min.js"></script>
    <script src="components/chosen/chosen.jquery.min.js"></script>
    <script>
      $(".chosen-select").chosen({width: "100%"});
      var client = new ZeroClipboard( document.getElementById("copy-button") );
      new Share(".share-button", {
        url: "<?php echo urlencode(Router::reverse($this->request, true)); ?>",
        networks: {
          facebook: {
            app_id: "1593551597530332"
          }
        }
      });
    </script>
    <?php echo $this->element('analytics'); ?>
  </body>
</html>
<commit_msg>Add [Twitter summary_large_image card](https://dev.twitter.com/cards/types/summary-large-image) to home page.<commit_after><?php
/**
 * Off Canvas Layout
 *     for WoW Character Info
 *
 * Licensed under The MIT License
 *
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @author     		<NAME> (http://www.chrisvogt.me)
 * @link          https://github.com/chrisvogt/wowchar-info WoWChar Info
 * @package       WowCharInfo.View.Layout.offcanvas
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
 */ ?><!DOCTYPE html>
<html lang="en">
  <head>
    <?php echo $this->Html->charset(); ?>
<!--
      brought to you by...
 ██████╗ ██╗██╗   ██╗ ██████╗
██╔════╝███║██║   ██║██╔═████╗
██║     ╚██║██║   ██║██║██╔██║
██║      ██║╚██╗ ██╔╝████╔╝██║
╚██████╗ ██║ ╚████╔╝ ╚██████╔╝
 ╚═════╝ ╚═╝  ╚═══╝   ╚═════╝
     chrisvogt.me | @c1v0
   -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>WoW Character Viewer Info</title>

    <meta name="description" content="Find and share your World of Warcraft character stats online with this free, open-source tool.">
    <meta name="author" content="<NAME>">
    <?php
    if (isset($character)) :
		echo $this->CharOg->build($character);
	else:
		echo $this->Html->meta(['property' => 'og:image', 'content' => $this->Html->Url('/img/og-banner.jpg', true)]);
		echo $this->Html->meta(['property' => 'og:description', 'content' => 'Find and share your World of Warcraft character stats online with this free, open-source tool.']);
		echo $this->Html->meta(['property' => 'og:author', 'content' => 'CHR1SV0GT']);
		echo $this->Html->meta(['name' => 'twitter:card', 'content' => 'summary_large_image']);
		echo $this->Html->meta(['name' => 'twitter:site', 'content' => 'http://wowchar.info']);
		echo $this->Html->meta(['name' => 'twitter:creator', 'content' => '@C1V0']);
		echo $this->Html->meta(['name' => 'twitter:title', 'content' => 'World of Warcraft character sharing tool']);
		echo $this->Html->meta(['name' => 'twitter:description', 'content' => 'Find and share your World of Warcraft character stats online with this free, open-source tool.']);
		echo $this->Html->meta(['name' => 'twitter:image', 'content' => $this->Html->Url('/img/og-banner.jpg', true)]);
	endif; ?>

    <link rel="shortcut icon" href="favicon.ico">
    <link rel="apple-touch-icon" href="touch-icon-iphone.png">
    <link rel="apple-touch-icon" sizes="76x76" href="touch-icon-ipad.png">
    <link rel="apple-touch-icon" sizes="120x120" href="touch-icon-iphone-retina.png">
    <link rel="apple-touch-icon" sizes="152x152" href="touch-icon-ipad-retina.png">

    <link href="//maxcdn.bootstrapcdn.com/bootswatch/3.3.4/darkly/bootstrap.min.css" rel="stylesheet">
    <link href="components/jasny-bootstrap/dist/css/jasny-bootstrap.min.css" rel="stylesheet">
    <link href="components/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <link href='http://fonts.googleapis.com/css?family=Raleway:300' rel='stylesheet' type='text/css'>
    <link href="components/chosen/chosen.min.css" rel="stylesheet">
    <link href="css/wowchar.css" rel="stylesheet">

    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    <?php if ($this->request->here !== '/') echo $this->Element('sidebar'); ?>

    <a href="https://github.com/chrisvogt/wowchar-info" id="ghRibbon">
      <img src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png">
    </a>

		<?php if ($this->request->here == '/') echo $this->Element('jumbotron'); ?>

    <div class="container">
			<?php echo $this->Session->flash(); ?>
			<?php echo $this->fetch('content'); ?>
			<footer>
				<p><img class="pull-right" src="http://cakephp.org/img/default/cake-logo-smaller2.png" />Made with ♥ by <a href="https://twitter.com/c1v0">@c1v0</a>.</p>
			</footer>
    </div><!-- /.container -->

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="components/jquery/dist/jquery.min.js"></script>
    <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
    <script src="components/jasny-bootstrap/dist/js/jasny-bootstrap.min.js"></script>
    <script src="components/jasny-bootstrap/js/offcanvas.js"></script>
    <script src="components/share-button/build/share.min.js"></script>
    <script src="components/zeroclipboard/dist/ZeroClipboard.min.js"></script>
    <script src="components/chosen/chosen.jquery.min.js"></script>
    <script>
      $(".chosen-select").chosen({width: "100%"});
      var client = new ZeroClipboard( document.getElementById("copy-button") );
      new Share(".share-button", {
        url: "<?php echo urlencode(Router::reverse($this->request, true)); ?>",
        networks: {
          facebook: {
            app_id: "1593551597530332"
          }
        }
      });
    </script>
    <?php echo $this->element('analytics'); ?>
  </body>
</html>

{'fraction_non_alphanumeric': 0.22079054446812632, 'fraction_numerical': 0.04049602790156946, 'mean_word_length': 3.904038004750594, 'pattern_counts': {'":': 0, '<': 147, '<?xml version=': 0, '>': 231, 'https://': 15, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '901381', 'n_tokens_mistral': 3981, 'n_tokens_neox': 3691, 'n_words': 634}