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
| var selectedCount = this.getSelectedRecordCount(); | |
| if(selectedCount > 2000) { | |
| var params = { | |
| title : app.vtranslate('JS_MESSAGE'), | |
| text: app.vtranslate('JS_MASS_EDIT_LIMIT'), | |
| animation: 'show', | |
| type: 'error' | |
| }; | |
| Vtiger_Helper_Js.showPnotify(params); | |
| return; |
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
| /** | |
| * Realhe.ro Gruntfile for Wordpress | |
| * | |
| * @version 1.0 | |
| */ | |
| module.exports = function(grunt) { | |
| grunt.initConfig( { | |
| // Prepare banner | |
| pkg : grunt.file.readJSON('package.json'), | |
| banner : '/*! <%= pkg.name %> - v<%= pkg.version %> ' + |
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 | |
| /** | |
| * Convert datetime to human readable representation. | |
| * Polish version. | |
| * | |
| * @link http://stackoverflow.com/questions/1416697/converting-timestamp-to-time-ago-in-php-e-g-1-day-ago-2-days-ago | |
| */ | |
| function time_elapsed_string_pl($datetime, $full = false) { | |
| $now = new DateTime; | |
| $ago = new DateTime($datetime); |
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
| /** | |
| * Media queries | |
| */ | |
| // this means upper than smallest screens... | |
| // >=568px sm | |
| @media screen and (min-width: 35.5em) { | |
| @import "sm.less"; | |
| } |
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 | |
| /** | |
| * Responsive bg data | |
| * | |
| * @see http://jquerypicture.com/ | |
| */ | |
| function generate_reponsive_bg() { | |
| global $post, $_wp_additional_image_sizes; | |
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 | |
| if (!empty($_SERVER['HTTP_CLIENT_IP'])) { | |
| $ip = $_SERVER['HTTP_CLIENT_IP']; | |
| } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { | |
| $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; | |
| } else { | |
| $ip = $_SERVER['REMOTE_ADDR']; | |
| } | |
| if ( ! filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE) ) | |
| { |
NewerOlder