This file contains hidden or 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
| <script type='text/javascript'> | |
| /* <![CDATA[ */ | |
| var scriptParams = {"theme":"light"}; | |
| /* ]]> */ | |
| </script> |
This file contains hidden or 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
| <?php | |
| /** | |
| * Prevent Direct Access | |
| * | |
| * @since 0.1 | |
| */ | |
| defined('ABSPATH') or die("No script kiddies please!"); | |
| /** | |
| * Plugin constants |
This file contains hidden or 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
| <?php | |
| /** | |
| * Register text domain | |
| * | |
| * @since 0.1 | |
| */ | |
| function tmx_textdomain() { | |
| load_plugin_textdomain( 'themeaxe', false, dirname(plugin_basename(__FILE__)). '/languages/' ); | |
| } | |
| add_action( 'init', 'tmx_textdomain' ); |
This file contains hidden or 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
| <?php | |
| /** | |
| * Print direct link to plugin admin page | |
| * | |
| * Fetches array of links generated by WP Plugin admin page ( Deactivate | Edit ) | |
| * and inserts a link to the plugin admin page (plugins.php) | |
| * | |
| * @param array $links Array of links generated by WP in Plugin Admin page. | |
| * @return array Array of links to be output on Plugin Admin page. | |
| */ |
This file contains hidden or 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
| <ifModule mod_deflate.c> | |
| AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/css text/javascript application/javascript application/x-javascript application/json | |
| </ifModule> | |
| Header unset ETag | |
| FileETag None | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine on | |
| RewriteCond %{REQUEST_FILENAME} -s [OR] |
This file contains hidden or 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
| /* | |
| On mobile devices, the text-size-adjust property allows Web authors to control if and how | |
| the text-inflating algorithm is applied to the textual content of the element it is applied to. | |
| As this property is non-standard, it must be used prefixed: -moz-text-size-adjust, | |
| -webkit-text-size-adjust, and -ms-text-size-adjust. | |
| Reference: | |
| http://blog.55minutes.com/2012/04/iphone-text-resizing | |
| http://davemacaulay.com/webkit-text-size-adjust-doesnt-work-on-android-chrome | |
| */ |
This file contains hidden or 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
| /* | |
| This is useful in situations where you want to provide an easier/cleaner | |
| copy-paste experience for users (not have them accidentally text-select | |
| useless things, like icons or images). However it's a bit buggy. Firefox enforces | |
| the fact that any text matching that selector cannot be copied. WebKit still | |
| allows the text to be copied if you select elements around it. | |
| Reference: https://css-tricks.com/almanac/properties/u/user-select | |
| */ | |
| .row-of-icons { | |
| -webkit-user-select: none; /* Chrome all / Safari all */ |
This file contains hidden or 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
| /* | |
| Chrome appears to render pixelated images in the same way that Firefox and Safari will render images with crisp-edges. | |
| Reference: | |
| https://css-tricks.com/almanac/properties/i/image-rendering | |
| https://developer.mozilla.org/en/docs/Web/CSS/image-rendering | |
| */ | |
| img { | |
| image-rendering: auto; | |
| image-rendering: crisp-edges; |
This file contains hidden or 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
| <?php | |
| /* | |
| Pattern: string ini_set ( string $varname , string $newvalue ) | |
| Documentation: http://php.net/manual/en/function.ini-set.php | |
| */ | |
| echo ini_get('display_errors'); | |
| if (!ini_get('display_errors')) { | |
| ini_set('display_errors', '1'); | |
| } |
This file contains hidden or 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
| bootbox.dialog({ | |
| title: "This is a AJAX Form from external file.", | |
| data: {'user':'dc','task':'get'}, | |
| datauri: 'ajax.html', | |
| buttons: { | |
| success: { | |
| label: "Save", | |
| className: "btn-success", | |
| callback: function () { | |
| var name = $('#name').val(); |