| 6094 | stevensc | 1 | <?php
 | 
        
           |  |  | 2 |   | 
        
           | 6056 | efrain | 3 | use LeadersLinked\Model\ContentReaction;
 | 
        
           |  |  | 4 |   | 
        
           |  |  | 5 | $acl            = $this->viewModel()->getRoot()->getVariable('acl');
 | 
        
           |  |  | 6 | $currentUser    = $this->currentUserHelper();
 | 
        
           |  |  | 7 | $roleName       = $currentUser->getUserTypeId();
 | 
        
           |  |  | 8 |   | 
        
           |  |  | 9 |   | 
        
           |  |  | 10 | $this->inlineScript()->appendFile($this->basePath('vendors/ckeditor/ckeditor.js'));
 | 
        
           |  |  | 11 |   | 
        
           |  |  | 12 | $this->headLink()->appendStylesheet($this->basePath('vendors/nprogress/nprogress.css'));
 | 
        
           |  |  | 13 | $this->inlineScript()->appendFile($this->basePath('vendors/nprogress/nprogress.js'));
 | 
        
           |  |  | 14 |   | 
        
           |  |  | 15 | $this->inlineScript()->appendFile($this->basePath('vendors/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
 | 
        
           |  |  | 16 | $this->inlineScript()->appendFile($this->basePath('vendors/jsrender/jsrender.min.js'));
 | 
        
           |  |  | 17 |   | 
        
           |  |  | 18 |   | 
        
           |  |  | 19 |   | 
        
           |  |  | 20 | $this->inlineScript()->appendFile($this->basePath('vendors/jquery-validation/jquery.validate.js'));
 | 
        
           |  |  | 21 | $this->inlineScript()->appendFile($this->basePath('vendors/jquery-validation/additional-methods.js'));
 | 
        
           |  |  | 22 | $this->inlineScript()->appendFile($this->basePath('vendors/jquery-validation/localization/messages_es.js'));
 | 
        
           |  |  | 23 |   | 
        
           |  |  | 24 |   | 
        
           |  |  | 25 |   | 
        
           |  |  | 26 | $this->inlineScript()->captureStart();
 | 
        
           |  |  | 27 | echo <<<JS
 | 
        
           |  |  | 28 |   | 
        
           |  |  | 29 |   | 
        
           |  |  | 30 |   | 
        
           |  |  | 31 | jQuery( document ).ready(function( $ ) {
 | 
        
           |  |  | 32 |   | 
        
           |  |  | 33 |     $.fn.reload = function() {
 | 
        
           |  |  | 34 |         NProgress.start();
 | 
        
           |  |  | 35 |   | 
        
           |  |  | 36 |         $('.posts-section').show();
 | 
        
           |  |  | 37 |         $.ajax({
 | 
        
           |  |  | 38 |             'dataType'  : 'json',
 | 
        
           |  |  | 39 |             'accept'    : 'application/json',
 | 
        
           |  |  | 40 |             'method'    : 'get',
 | 
        
           |  |  | 41 |             'url'       :  '$routeComments'
 | 
        
           |  |  | 42 |         }).done(function(response) {
 | 
        
           |  |  | 43 |             if(response['success']) {
 | 
        
           |  |  | 44 |                 $('#comment-list').html(
 | 
        
           |  |  | 45 |                     $( "#commentTemplate" ).render( response['data'])
 | 
        
           |  |  | 46 |                 );
 | 
        
           |  |  | 47 |   | 
        
           |  |  | 48 |             } else {
 | 
        
           |  |  | 49 |                 $.fn.showError(response['data']);
 | 
        
           |  |  | 50 |             }
 | 
        
           |  |  | 51 |   | 
        
           |  |  | 52 |   | 
        
           |  |  | 53 |         }).fail(function( jqXHR, textStatus, errorThrown) {
 | 
        
           |  |  | 54 |             $.fn.showError(textStatus);
 | 
        
           |  |  | 55 |         }).always(function() {
 | 
        
           |  |  | 56 |             $('.posts-section').hide();
 | 
        
           |  |  | 57 |            NProgress.done();
 | 
        
           |  |  | 58 |         });
 | 
        
           |  |  | 59 |   | 
        
           |  |  | 60 |     }
 | 
        
           |  |  | 61 |   | 
        
           |  |  | 62 |   | 
        
           |  |  | 63 |     $.fn.showFormErrorValidator = function(fieldname, errors) {
 | 
        
           |  |  | 64 |         var field = $(fieldname);
 | 
        
           |  |  | 65 |         if(field) {
 | 
        
           |  |  | 66 |             $(field).addClass('is-invalid');
 | 
        
           |  |  | 67 |   | 
        
           |  |  | 68 |   | 
        
           |  |  | 69 |             var error = $('<span id="' + fieldname +'-error" class="error invalid-feedback">' + errors + '</div>');
 | 
        
           |  |  | 70 |             if(element.parent('.btn-file').length) {
 | 
        
           |  |  | 71 |                 error.insertAfter(element.parent().parent());
 | 
        
           |  |  | 72 |             } else if(element.parent('.toggle').length) {
 | 
        
           |  |  | 73 |                 error.insertAfter(element.parent().parent());
 | 
        
           |  |  | 74 |             } else {
 | 
        
           |  |  | 75 |                 error.insertAfter(element.parent());
 | 
        
           |  |  | 76 |             }
 | 
        
           |  |  | 77 |         }
 | 
        
           |  |  | 78 |     };
 | 
        
           |  |  | 79 |   | 
        
           |  |  | 80 |   | 
        
           |  |  | 81 |     var validator = $('#form-comment').validate({
 | 
        
           |  |  | 82 |         debug: true,
 | 
        
           |  |  | 83 |         onclick: false,
 | 
        
           |  |  | 84 |         onkeyup: false,
 | 
        
           |  |  | 85 |         ignore: [],
 | 
        
           |  |  | 86 |         rules: {
 | 
        
           |  |  | 87 |             'comment': {
 | 
        
           |  |  | 88 |                 required: true,
 | 
        
           | 6266 | stevensc | 89 |                 maxlength: 256
 | 
        
           | 6056 | efrain | 90 |             },
 | 
        
           |  |  | 91 |         },
 | 
        
           |  |  | 92 |         submitHandler: function(form)
 | 
        
           |  |  | 93 |         {
 | 
        
           |  |  | 94 |   | 
        
           |  |  | 95 | 			NProgress.start();
 | 
        
           |  |  | 96 |             $.ajax({
 | 
        
           |  |  | 97 |                     'dataType'  : 'json',
 | 
        
           |  |  | 98 |                     'accept'    : 'application/json',
 | 
        
           |  |  | 99 |                     'method'    : 'post',
 | 
        
           |  |  | 100 |                     'url'       : '$routeCommentAdd',
 | 
        
           |  |  | 101 |                     'data'      :  $('#form-comment').serialize()
 | 
        
           |  |  | 102 |   | 
        
           |  |  | 103 |             }).done(function(response) {
 | 
        
           |  |  | 104 | 				if(response['success']) {
 | 
        
           |  |  | 105 |                     $('#form-comment #comment').val('');
 | 
        
           |  |  | 106 |                     $('#comment-list').append(
 | 
        
           |  |  | 107 |                         $( "#commentTemplate" ).render( response['data'])
 | 
        
           |  |  | 108 |                     );
 | 
        
           |  |  | 109 |                 } else {
 | 
        
           |  |  | 110 |                     validator.resetForm();
 | 
        
           |  |  | 111 |                     if(jQuery.type(response['data']) == 'string') {
 | 
        
           |  |  | 112 |                         $.fn.showError(response['data']);
 | 
        
           |  |  | 113 |                     } else  {
 | 
        
           |  |  | 114 |                         $.each(response['data'], function( fieldname, errors ) {
 | 
        
           |  |  | 115 |                             $.fn.showFormErrorValidator('#form #' + fieldname, errors);
 | 
        
           |  |  | 116 |                         });
 | 
        
           |  |  | 117 |                     }
 | 
        
           |  |  | 118 |                 }
 | 
        
           |  |  | 119 |             }).fail(function( jqXHR, textStatus, errorThrown) {
 | 
        
           |  |  | 120 |                 $.fn.showError(textStatus);
 | 
        
           |  |  | 121 |             }).always(function() {
 | 
        
           |  |  | 122 |                 NProgress.done();
 | 
        
           |  |  | 123 |             });
 | 
        
           |  |  | 124 |             return false;
 | 
        
           |  |  | 125 |         },
 | 
        
           |  |  | 126 |         invalidHandler: function(form, validator) {
 | 
        
           |  |  | 127 |   | 
        
           |  |  | 128 |         }
 | 
        
           |  |  | 129 |     });
 | 
        
           |  |  | 130 |   | 
        
           |  |  | 131 |   | 
        
           |  |  | 132 |     $('body').on('click', 'a.btn-comment-trash', function(e) {
 | 
        
           |  |  | 133 |         e.preventDefault();
 | 
        
           |  |  | 134 |         var action = $(this).data('link');
 | 
        
           |  |  | 135 |         var unique = $(this).data('comment-unique');
 | 
        
           |  |  | 136 |   | 
        
           |  |  | 137 |   | 
        
           |  |  | 138 |         NProgress.start();
 | 
        
           |  |  | 139 |         $.ajax({
 | 
        
           |  |  | 140 |             'dataType'  : 'json',
 | 
        
           |  |  | 141 |             'accept'    : 'application/json',
 | 
        
           |  |  | 142 |             'method'    : 'post',
 | 
        
           |  |  | 143 |             'url'       :  action,
 | 
        
           |  |  | 144 |         }).done(function(response) {
 | 
        
           |  |  | 145 |             if(response['success']) {
 | 
        
           |  |  | 146 |                $('div.comment-' + unique).remove();
 | 
        
           |  |  | 147 |             } else {
 | 
        
           |  |  | 148 |                 $.fn.showError(response['data']);
 | 
        
           |  |  | 149 |             }
 | 
        
           |  |  | 150 |         }).fail(function( jqXHR, textStatus, errorThrown) {
 | 
        
           |  |  | 151 |             $.fn.showError(textStatus);
 | 
        
           |  |  | 152 |         }).always(function() {
 | 
        
           |  |  | 153 |             NProgress.done();
 | 
        
           |  |  | 154 |         });
 | 
        
           |  |  | 155 |   | 
        
           |  |  | 156 |     });
 | 
        
           |  |  | 157 |   | 
        
           |  |  | 158 |     $('body').on('click', 'button.btn-save-reaction', function(e) {
 | 
        
           |  |  | 159 |         e.preventDefault();
 | 
        
           |  |  | 160 |         var reaction = $(this).data('reaction');
 | 
        
           |  |  | 161 |   | 
        
           |  |  | 162 |         NProgress.start();
 | 
        
           |  |  | 163 |         $.ajax({
 | 
        
           |  |  | 164 |             'dataType'  : 'json',
 | 
        
           |  |  | 165 |             'accept'    : 'application/json',
 | 
        
           |  |  | 166 |             'method'    : 'post',
 | 
        
           |  |  | 167 |             'url'       :  '$routeSaveReaction',
 | 
        
           |  |  | 168 |             'data'      : {
 | 
        
           |  |  | 169 |                 'reaction' : reaction
 | 
        
           |  |  | 170 |             }
 | 
        
           |  |  | 171 |         }).done(function(response) {
 | 
        
           |  |  | 172 |             if(response['success']) {
 | 
        
           | 6164 | stevensc | 173 |                  $('#currentReaction').attr('data-reaction', reaction);
 | 
        
           | 6056 | efrain | 174 |                  $('#currentReaction').html(
 | 
        
           |  |  | 175 |                     $('#reactionTemplate').render({reaction: reaction})
 | 
        
           |  |  | 176 |                 );
 | 
        
           |  |  | 177 |             } else {
 | 
        
           |  |  | 178 |                 $.fn.showError(response['data']);
 | 
        
           |  |  | 179 |             }
 | 
        
           |  |  | 180 |         }).fail(function( jqXHR, textStatus, errorThrown) {
 | 
        
           |  |  | 181 |             $.fn.showError(textStatus);
 | 
        
           |  |  | 182 |         }).always(function() {
 | 
        
           |  |  | 183 |             NProgress.done();
 | 
        
           |  |  | 184 |         });
 | 
        
           |  |  | 185 |   | 
        
           |  |  | 186 |     });
 | 
        
           |  |  | 187 |   | 
        
           | 6166 | stevensc | 188 |     $('body').on('click', 'button#currentReaction', function(e) {
 | 
        
           | 6056 | efrain | 189 |         e.preventDefault();
 | 
        
           | 6164 | stevensc | 190 |         var reaction = $(this).data('reaction');
 | 
        
           | 6056 | efrain | 191 |   | 
        
           | 6164 | stevensc | 192 |         if(!reaction) return
 | 
        
           | 6056 | efrain | 193 |   | 
        
           |  |  | 194 |         NProgress.start();
 | 
        
           |  |  | 195 |         $.ajax({
 | 
        
           |  |  | 196 |             'dataType'  : 'json',
 | 
        
           |  |  | 197 |             'accept'    : 'application/json',
 | 
        
           |  |  | 198 |             'method'    : 'post',
 | 
        
           |  |  | 199 |             'url'       :  '$routeDeleteReaction',
 | 
        
           |  |  | 200 |         }).done(function(response) {
 | 
        
           |  |  | 201 |             if(response['success']) {
 | 
        
           | 6164 | stevensc | 202 |                 $('#currentReaction').html(
 | 
        
           | 6056 | efrain | 203 |                     $('#reactionTemplate').render({reaction: ''})
 | 
        
           | 6164 | stevensc | 204 |             );
 | 
        
           |  |  | 205 |         } else {
 | 
        
           |  |  | 206 |             $.fn.showError(response['data']);
 | 
        
           |  |  | 207 |         }
 | 
        
           | 6056 | efrain | 208 |         }).fail(function( jqXHR, textStatus, errorThrown) {
 | 
        
           |  |  | 209 |             $.fn.showError(textStatus);
 | 
        
           |  |  | 210 |         }).always(function() {
 | 
        
           |  |  | 211 |             NProgress.done();
 | 
        
           |  |  | 212 |         });
 | 
        
           |  |  | 213 |     });
 | 
        
           |  |  | 214 |   | 
        
           | 6138 | stevensc | 215 |     let isMouseHover;
 | 
        
           |  |  | 216 |   | 
        
           | 6126 | stevensc | 217 |     $('body').on('mouseover', '#reaction-container', function(e) {
 | 
        
           | 6138 | stevensc | 218 |         isMouseHover = true;
 | 
        
           | 6120 | stevensc | 219 |         setTimeout(() => {
 | 
        
           | 6125 | stevensc | 220 |             $('.reactions').addClass('active');
 | 
        
           | 6120 | stevensc | 221 |         }, 500);
 | 
        
           | 6116 | stevensc | 222 |     });
 | 
        
           | 6056 | efrain | 223 |   | 
        
           | 6126 | stevensc | 224 |     $('body').on('mouseout', '#reaction-container', function(e) {
 | 
        
           | 6143 | stevensc | 225 |         isMouseHover = false;
 | 
        
           | 6136 | stevensc | 226 |         setTimeout(() => {
 | 
        
           | 6143 | stevensc | 227 |             if(!isMouseHover) {
 | 
        
           | 6138 | stevensc | 228 |                 $('.reactions').removeClass('active');
 | 
        
           |  |  | 229 |             }
 | 
        
           | 6143 | stevensc | 230 |         }, 500);
 | 
        
           | 6125 | stevensc | 231 |     });
 | 
        
           |  |  | 232 |   | 
        
           | 6056 | efrain | 233 |     $('#paginator-process-comm').click(function(e) {
 | 
        
           |  |  | 234 |         e.preventDefault();
 | 
        
           |  |  | 235 |   | 
        
           |  |  | 236 |         var next_page = $(this).data('next-page');
 | 
        
           |  |  | 237 |         $.fn.reload(false, next_page);
 | 
        
           |  |  | 238 |   | 
        
           |  |  | 239 |     });
 | 
        
           |  |  | 240 |   | 
        
           |  |  | 241 |     $.fn.reload();
 | 
        
           |  |  | 242 |   | 
        
           |  |  | 243 |   | 
        
           |  |  | 244 |   | 
        
           |  |  | 245 |     $('#currentReaction').html(
 | 
        
           |  |  | 246 |         $('#reactionTemplate').render({reaction: '$reaction'})
 | 
        
           |  |  | 247 |     );
 | 
        
           |  |  | 248 | });
 | 
        
           |  |  | 249 | JS;
 | 
        
           | 6101 | stevensc | 250 |   | 
        
           | 6056 | efrain | 251 | $this->inlineScript()->captureEnd();
 | 
        
           | 6101 | stevensc | 252 | $this->headLink()->appendStylesheet('/look-and-field/knowledge.css');
 | 
        
           | 6149 | stevensc | 253 | $this->headLink()->appendStylesheet('/look-and-field/dashboard.css');
 | 
        
           | 6056 | efrain | 254 |   | 
        
           |  |  | 255 | ?>
 | 
        
           |  |  | 256 |   | 
        
           | 6113 | stevensc | 257 | <section class="companies-info container px-0">
 | 
        
           | 6094 | stevensc | 258 |     <div class="company-title">
 | 
        
           |  |  | 259 |         <h1 class="title mx-auto">LABEL_KNOWLEDGE_AREA_TITLE</h1>
 | 
        
           |  |  | 260 |     </div>
 | 
        
           | 6056 | efrain | 261 |   | 
        
           | 6094 | stevensc | 262 |     <div class="row">
 | 
        
           | 6253 | stevensc | 263 |         <div class="col-12 col-md-8 mx-auto">
 | 
        
           | 6113 | stevensc | 264 |   | 
        
           | 6056 | efrain | 265 |             <div class="knowledge-record-card">
 | 
        
           | 6103 | stevensc | 266 |                 <img src="<?php echo $image ?>" alt="">
 | 
        
           |  |  | 267 |                 <h3><?php echo $category ?></h3>
 | 
        
           |  |  | 268 |                 <h2><?php echo $title ?></h2>
 | 
        
           |  |  | 269 |                 <p><?php echo $description ?></p>
 | 
        
           | 6254 | stevensc | 270 |                 <div class="knowledge-record-card-actions">
 | 
        
           | 6267 | stevensc | 271 |                     <div class="position-relative" id="reaction-container">
 | 
        
           | 6262 | stevensc | 272 |                         <button class="btn reaction-btn" id="currentReaction"></button>
 | 
        
           | 6254 | stevensc | 273 |                         <div class="reactions">
 | 
        
           |  |  | 274 |                             <button class="btn-save-reaction" data-reaction="<?php echo ContentReaction::REACTION_RECOMMENDED ?>" title="Me gusta">
 | 
        
           | 6678 | stevensc | 275 |                                 <svg xmlns="http://www.w3.org/2000/svg" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" version="1.1" viewBox="0 0 100 100" xml:space="preserve">
 | 
        
           |  |  | 276 |                                     <path d="M71.6 57.78l-18.57-2.85a4.425 4.425 0 01-3.7-5.04 4.425 4.425 0 015.04-3.7l18.47 1.13c2.41.37 4.16 4.35 3.79 6.76a4.416 4.416 0 01-5.03 3.7zM69 68.57l-18.22-3.81c-2.37-.49-3.88-2.81-3.39-5.18.49-2.37 2.81-3.88 5.18-3.39l18.65 3.24c2.37.49 3.45 3.38 2.95 5.74-.48 2.37-2.8 3.89-5.17 3.4zM66.41 79.29l-17.86-4.44a4.327 4.327 0 01-3.35-5.11 4.327 4.327 0 015.11-3.35l17.99 3.76c2.34.49 3.83 2.78 3.35 5.11-.49 2.34-2.9 4.52-5.24 4.03zM60.56 89.05l-14.42-4.82c-2.18-.58-3.49-2.82-2.91-5 .58-2.18 2.82-3.49 5-2.91l15.9 4.15c2.18.58 3.49 2.82 2.91 5-.58 2.19-4.3 4.16-6.48 3.58z" class="st0"></path>
 | 
        
           |  |  | 277 |                                     <path d="M63.3 24.36c-.54-.8-2.31-2.51-3.33-1.04l-.61.89c-2.4 3.48-5.53 6.4-9.18 8.53-2.94 1.72-6.05 3.53-6.6 3.81-.57.29-4.94 3.59-8.96 6.66-4.28 3.27-14.92 5.05-14.92 5.05v28.86h2.98c3.69 0 7.34.83 10.67 2.44l7.94 3.83c.6.29 1.22-.34.93-.94-.01-.02-.02-.03-.02-.05a5.86 5.86 0 01-.56-2.95c.17-2.4 1.7-4.3 3.7-5.11a5.96 5.96 0 01-1.33-6.22c.35-.95.94-1.8 1.71-2.46.5-.42 1.05-.75 1.63-.99-.44-.45-.81-.98-1.1-1.57-.45-.91-.65-1.93-.58-2.94A5.976 5.976 0 0149.38 55a5.947 5.947 0 01-1.33-6.21c.35-.97.95-1.83 1.74-2.49 1.43-1.2 3.07-1.48 4.85-1.42l2.22.15 3.53-4.36c1.26-1.44 2.27-3.07 3.02-4.83l.48-1.14c1.42-3.35 1.2-7.17-.59-10.34zM6.19 80.62h8.67c1.76 0 3.19-1.43 3.19-3.19V48.26c0-1.76-1.43-3.19-3.19-3.19H6.19C4.43 45.07 3 46.5 3 48.26v29.17a3.18 3.18 0 003.19 3.19z" class="st0"></path>
 | 
        
           |  |  | 278 |                                     <g>
 | 
        
           |  |  | 279 |                                         <path d="M83.93 38.06v.59c0 .97-.79 1.75-1.75 1.75h-.04c-.97 0-1.75-.78-1.75-1.75v-.59c.05.01.1.01.16.01h3.23c.04-.01.1-.01.15-.01z" class="st4"></path>
 | 
        
           |  |  | 280 |                                         <path d="M82.17 41.19h-.04c-1.4 0-2.54-1.14-2.54-2.54v-.59a.797.797 0 01.9-.79h3.34c.23-.03.45.04.62.19.17.15.27.37.27.6v.59c0 1.4-1.14 2.54-2.55 2.54zm-.97-2.34c.1.43.48.75.94.75h.04c.46 0 .84-.32.94-.75H81.2z" class="st5"></path>
 | 
        
           |  |  | 281 |                                         <path d="M88.87 25.23a7.483 7.483 0 00-2.78 5.8v1.26h-7.87v-1.21c0-2.24-.96-4.4-2.71-5.79a10.617 10.617 0 01-4.01-8.33c0-5.99 4.94-10.83 10.97-10.65 5.53.15 10.08 4.62 10.33 10.14.17 3.54-1.41 6.73-3.93 8.78z" class="st6"></path>
 | 
        
           |  |  | 282 |                                         <path d="M86.09 33.08h-7.87c-.44 0-.79-.35-.79-.79v-1.21c0-2.03-.9-3.97-2.41-5.17a11.4 11.4 0 01-4.31-8.95c0-6.42 5.32-11.62 11.78-11.44 5.96.17 10.83 4.96 11.1 10.91.17 3.67-1.37 7.1-4.22 9.43-1.58 1.29-2.49 3.18-2.49 5.19v1.26c0 .42-.35.77-.79.77zm-7.08-1.58h6.29v-.47c0-2.49 1.12-4.82 3.07-6.41 2.46-2 3.79-4.96 3.64-8.13-.23-5.12-4.43-9.25-9.56-9.4-5.56-.16-10.16 4.33-10.16 9.86 0 3.02 1.35 5.83 3.71 7.72 1.91 1.52 3.01 3.86 3.01 6.41v.42z" class="st5"></path>
 | 
        
           |  |  | 283 |                                         <path d="M78.22 32.29H86.09V35.23H78.22z" class="st4"></path>
 | 
        
           |  |  | 284 |                                         <path d="M78.22 36.03a.787.787 0 01-.79-.79v-2.95c0-.44.35-.79.79-.79h7.87c.44 0 .79.35.79.79v2.94c0 .44-.35.79-.79.79l-7.87.01zm.79-2.95v1.37h6.29v-1.36h-6.29z" class="st5"></path>
 | 
        
           |  |  | 285 |                                         <g>
 | 
        
           |  |  | 286 |                                             <path d="M86.09 35.24v.51c0 1.23-.95 2.23-2.16 2.31-.05.01-.1.01-.16.01h-3.23c-.05 0-.11 0-.16-.01a2.31 2.31 0 01-2.16-2.31v-.51h7.87z" class="st4"></path>
 | 
        
           |  |  | 287 |                                             <path d="M83.77 38.85h-3.23c-.08 0-.16 0-.23-.01a3.11 3.11 0 01-2.88-3.1v-.51c0-.44.35-.79.79-.79h7.87a.787.787 0 01.79.79v.51a3.11 3.11 0 01-2.88 3.1c-.07.01-.15.01-.23.01zm-4.73-2.82c.13.67.7 1.19 1.4 1.24.02 0 .04 0 .06.01h3.34c.74-.05 1.32-.57 1.44-1.25h-6.24z" class="st5"></path>
 | 
        
           |  |  | 288 |                                         </g>
 | 
        
           |  |  | 289 |                                         <g>
 | 
        
           |  |  | 290 |                                             <path d="M83.93 33.08c-.44 0-.79-.34-.79-.78v-.03c0-3.96.47-7.93 1.39-11.78l.78-3.28-1.42.54c-.25.09-.53.06-.74-.1l-1.45-1.06a.785.785 0 01-.17-1.1c.26-.35.75-.43 1.1-.17l1.11.81 2.41-.91c.27-.1.58-.05.8.15.22.19.31.49.25.78l-1.13 4.72c-.89 3.74-1.35 7.58-1.35 11.42 0 .42-.36.79-.79.79z" class="st5"></path>
 | 
        
           |  |  | 291 |                                         </g>
 | 
        
           |  |  | 292 |                                         <g>
 | 
        
           |  |  | 293 |                                             <path d="M80.39 33.08c-.44 0-.79-.34-.79-.78v-.03c0-3.84-.45-7.68-1.35-11.42l-1.13-4.72a.8.8 0 01.25-.78c.22-.19.53-.25.8-.15l2.41.91 1.11-.81c.35-.26.85-.18 1.1.17.26.35.18.85-.17 1.1l-1.45 1.06c-.22.16-.5.2-.74.1L79 17.21l.78 3.28c.92 3.85 1.39 7.82 1.39 11.78.01.44-.34.81-.78.81z" class="st5"></path>
 | 
        
           |  |  | 294 |                                         </g>
 | 
        
           |  |  | 295 |                                         <g>
 | 
        
           |  |  | 296 |                                             <path d="M73.69 3.15L74 5.41a3.84 3.84 0 003.29 3.29l2.26.31-2.27.33a3.85 3.85 0 00-3.25 3.25l-.33 2.27-.33-2.27a3.85 3.85 0 00-3.25-3.25l-2.27-.33 2.24-.28a3.842 3.842 0 003.33-3.33l.27-2.25z" class="st7"></path>
 | 
        
           |  |  | 297 |                                             <path d="M73.69 15.53c-.33 0-.6-.24-.65-.56l-.33-2.27a3.182 3.182 0 00-2.7-2.7l-2.27-.33a.65.65 0 01-.56-.66c0-.33.25-.61.58-.65L70 8.08a3.184 3.184 0 002.76-2.76l.28-2.24c.04-.33.32-.57.65-.58.33 0 .61.24.65.57l.31 2.26a3.203 3.203 0 002.73 2.73l2.26.31c.32.04.57.32.57.65s-.24.61-.56.65l-2.28.33a3.182 3.182 0 00-2.7 2.7l-.33 2.27c-.05.32-.33.56-.65.56zm-2.3-6.49a4.51 4.51 0 012.3 2.33 4.443 4.443 0 012.33-2.34 4.544 4.544 0 01-2.31-2.28 4.545 4.545 0 01-2.32 2.29z" class="st5"></path>
 | 
        
           |  |  | 298 |                                         </g>
 | 
        
           |  |  | 299 |                                     </g>
 | 
        
           | 6254 | stevensc | 300 |                                 </svg>
 | 
        
           |  |  | 301 |                             </button>
 | 
        
           |  |  | 302 |                             <button class="btn-save-reaction" data-reaction="<?php echo ContentReaction::REACTION_SUPPORT ?>" title="Dar apoyo">
 | 
        
           |  |  | 303 |                                 <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="VolunteerActivismIcon" style="color: rgb(100, 149, 237);">
 | 
        
           |  |  | 304 |                                     <path d="M1 11h4v11H1zm15-7.75C16.65 2.49 17.66 2 18.7 2 20.55 2 22 3.45 22 5.3c0 2.27-2.91 4.9-6 7.7-3.09-2.81-6-5.44-6-7.7C10 3.45 11.45 2 13.3 2c1.04 0 2.05.49 2.7 1.25zM20 17h-7l-2.09-.73.33-.94L13 16h2.82c.65 0 1.18-.53 1.18-1.18 0-.49-.31-.93-.77-1.11L8.97 11H7v9.02L14 22l8.01-3c-.01-1.1-.9-2-2.01-2z"></path>
 | 
        
           |  |  | 305 |                                 </svg>
 | 
        
           |  |  | 306 |                             </button>
 | 
        
           |  |  | 307 |                             <button class="btn-save-reaction" data-reaction="<?php echo ContentReaction::REACTION_LOVE ?>" title="Me encanta">
 | 
        
           |  |  | 308 |                                 <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="FavoriteTwoToneIcon" style="color: rgb(223, 112, 77);">
 | 
        
           |  |  | 309 |                                     <path d="M16.5 5c-1.54 0-3.04.99-3.56 2.36h-1.87C10.54 5.99 9.04 5 7.5 5 5.5 5 4 6.5 4 8.5c0 2.89 3.14 5.74 7.9 10.05l.1.1.1-.1C16.86 14.24 20 11.39 20 8.5c0-2-1.5-3.5-3.5-3.5z" opacity=".3"></path>
 | 
        
           |  |  | 310 |                                     <path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"></path>
 | 
        
           |  |  | 311 |                                 </svg>
 | 
        
           |  |  | 312 |                             </button>
 | 
        
           |  |  | 313 |                             <button class="btn-save-reaction" data-reaction="<?php echo ContentReaction::REACTION_INTEREST ?>" title="Me interesa">
 | 
        
           |  |  | 314 |                                 <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="TungstenIcon" style="color: rgb(245, 187, 92);transform: rotate(180deg);">
 | 
        
           |  |  | 315 |                                     <path d="M11 19h2v3h-2zm-9-8h3v2H2zm17 0h3v2h-3zm-3.106 6.8014 1.4072-1.4071 2.1213 2.1213-1.4071 1.4071zm-11.3099.7071 2.1214-2.1213 1.4071 1.4072-2.1213 2.1213zM15 8.02V3H9v5.02c-1.21.92-2 2.35-2 3.98 0 2.76 2.24 5 5 5s5-2.24 5-5c0-1.63-.79-3.06-2-3.98zM11 5h2v2.1c-.32-.06-.66-.1-1-.1s-.68.04-1 .1V5z"></path>
 | 
        
           |  |  | 316 |                                 </svg>
 | 
        
           |  |  | 317 |                             </button>
 | 
        
           |  |  | 318 |                             <button class="btn-save-reaction" data-reaction="<?php echo ContentReaction::REACTION_FUN ?>" title="Me divierte">
 | 
        
           |  |  | 319 |                                 <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="EmojiEmotionsIcon" style="color: rgb(255, 127, 80);">
 | 
        
           |  |  | 320 |                                     <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM8.5 8c.83 0 1.5.67 1.5 1.5S9.33 11 8.5 11 7 10.33 7 9.5 7.67 8 8.5 8zM12 18c-2.28 0-4.22-1.66-5-4h10c-.78 2.34-2.72 4-5 4zm3.5-7c-.83 0-1.5-.67-1.5-1.5S14.67 8 15.5 8s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path>
 | 
        
           |  |  | 321 |                                 </svg>
 | 
        
           |  |  | 322 |                             </button>
 | 
        
           |  |  | 323 |                         </div>
 | 
        
           |  |  | 324 |                     </div>
 | 
        
           | 6094 | stevensc | 325 |                     <?php if ($attachment) : ?>
 | 
        
           | 6263 | stevensc | 326 |                         <a href="<?php echo $attachment ?>" target="_blank">
 | 
        
           | 6262 | stevensc | 327 |                             <button class="btn reaction-btn">
 | 
        
           |  |  | 328 |                                 <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="DownloadForOfflineIcon" style="color: gray;">
 | 
        
           | 6263 | stevensc | 329 |                                     <path d="M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm-1 8V6h2v4h3l-4 4-4-4h3zm6 7H7v-2h10v2  z"></path>
 | 
        
           | 6262 | stevensc | 330 |                                 </svg>
 | 
        
           |  |  | 331 |                                 LABEL_KNOWLEDGE_AREA_DOWNLOAD_ATTACHMENT
 | 
        
           |  |  | 332 |                             </button>
 | 
        
           |  |  | 333 |                         </a>
 | 
        
           | 6056 | efrain | 334 |                     <?php endif; ?>
 | 
        
           | 6094 | stevensc | 335 |                     <?php if ($link) : ?>
 | 
        
           | 6262 | stevensc | 336 |                         <a href="<?php echo $link ?>" target="_blank" style="flex: 1;">
 | 
        
           |  |  | 337 |                             <button class="btn reaction-btn">
 | 
        
           |  |  | 338 |                                 LABEL_KNOWLEDGE_AREA_GO_TO_LINK
 | 
        
           |  |  | 339 |                             </button>
 | 
        
           |  |  | 340 |                         </a>
 | 
        
           | 6056 | efrain | 341 |                     <?php endif; ?>
 | 
        
           |  |  | 342 |                 </div>
 | 
        
           | 6151 | stevensc | 343 |                 <div class="comments-container show px-3">
 | 
        
           | 6153 | stevensc | 344 |                     <form class="feedCommentContainer" id="form-comment" class="form-comment">
 | 
        
           | 6266 | stevensc | 345 |                         <input class="commentInput" type="text" name="comment" id="comment" maxlength="256" placeholder="LABEL_WRITE_A_COMMENT">
 | 
        
           | 6151 | stevensc | 346 |                         <button class="btn btn-primary" type="submit">LABEL_SEND</button>
 | 
        
           |  |  | 347 |                     </form>
 | 
        
           |  |  | 348 |                     <ul id="comment-list" class="comment-list">
 | 
        
           |  |  | 349 |                     </ul>
 | 
        
           |  |  | 350 |                 </div>
 | 
        
           | 6056 | efrain | 351 |             </div>
 | 
        
           | 6113 | stevensc | 352 |   | 
        
           | 6094 | stevensc | 353 |         </div>
 | 
        
           | 6113 | stevensc | 354 |     </div>
 | 
        
           | 6056 | efrain | 355 |   | 
        
           | 6094 | stevensc | 356 |     <div class="row">
 | 
        
           |  |  | 357 |         <div class="col-12 ">
 | 
        
           |  |  | 358 |             <div class="posts-section">
 | 
        
           |  |  | 359 |                 <div class="process-comm" id="paginator-process-comm">
 | 
        
           |  |  | 360 |                     <div class="spinner">
 | 
        
           |  |  | 361 |                         <div class="bounce1"></div>
 | 
        
           |  |  | 362 |                         <div class="bounce2"></div>
 | 
        
           |  |  | 363 |                         <div class="bounce3"></div>
 | 
        
           |  |  | 364 |                     </div>
 | 
        
           |  |  | 365 |                 </div>
 | 
        
           |  |  | 366 |             </div>
 | 
        
           | 6103 | stevensc | 367 |   | 
        
           | 6056 | efrain | 368 |         </div>
 | 
        
           | 6149 | stevensc | 369 |         <?php ?>
 | 
        
           |  |  | 370 |     </div>
 | 
        
           |  |  | 371 |     </div>
 | 
        
           | 6056 | efrain | 372 | </section>
 | 
        
           |  |  | 373 |   | 
        
           |  |  | 374 |   | 
        
           |  |  | 375 | <script id="reactionTemplate" type="text/x-jsrender">
 | 
        
           | 6094 | stevensc | 376 |     {{if reaction === '<?php echo ContentReaction::REACTION_FUN ?>'}}
 | 
        
           |  |  | 377 |     <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="EmojiEmotionsIcon" style="color: rgb(255, 127, 80);">
 | 
        
           |  |  | 378 |         <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM8.5 8c.83 0 1.5.67 1.5 1.5S9.33 11 8.5 11 7 10.33 7 9.5 7.67 8 8.5 8zM12 18c-2.28 0-4.22-1.66-5-4h10c-.78 2.34-2.72 4-5 4zm3.5-7c-.83 0-1.5-.67-1.5-1.5S14.67 8 15.5 8s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path>
 | 
        
           |  |  | 379 |     </svg>
 | 
        
           | 6164 | stevensc | 380 |     Me Divierte
 | 
        
           | 6094 | stevensc | 381 |     {{/if}}
 | 
        
           |  |  | 382 |     {{if reaction === '<?php echo ContentReaction::REACTION_INTEREST ?>'}}
 | 
        
           | 6169 | stevensc | 383 |     <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="TungstenIcon" style="color: rgb(245, 187, 92);transform: rotate(180deg);">
 | 
        
           | 6094 | stevensc | 384 |         <path d="M11 19h2v3h-2zm-9-8h3v2H2zm17 0h3v2h-3zm-3.106 6.8014 1.4072-1.4071 2.1213 2.1213-1.4071 1.4071zm-11.3099.7071 2.1214-2.1213 1.4071 1.4072-2.1213 2.1213zM15 8.02V3H9v5.02c-1.21.92-2 2.35-2 3.98 0 2.76 2.24 5 5 5s5-2.24 5-5c0-1.63-.79-3.06-2-3.98zM11 5h2v2.1c-.32-.06-.66-.1-1-.1s-.68.04-1 .1V5z"></path>
 | 
        
           |  |  | 385 |     </svg>
 | 
        
           | 6164 | stevensc | 386 |     Me Interesa
 | 
        
           | 6094 | stevensc | 387 |     {{/if}}
 | 
        
           |  |  | 388 |     {{if reaction === '<?php echo ContentReaction::REACTION_LOVE ?>'}}
 | 
        
           |  |  | 389 |     <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="FavoriteTwoToneIcon" style="color: rgb(223, 112, 77);">
 | 
        
           |  |  | 390 |         <path d="M16.5 5c-1.54 0-3.04.99-3.56 2.36h-1.87C10.54 5.99 9.04 5 7.5 5 5.5 5 4 6.5 4 8.5c0 2.89 3.14 5.74 7.9 10.05l.1.1.1-.1C16.86 14.24 20 11.39 20 8.5c0-2-1.5-3.5-3.5-3.5z" opacity=".3"></path>
 | 
        
           |  |  | 391 |         <path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"></path>
 | 
        
           |  |  | 392 |     </svg>
 | 
        
           | 6164 | stevensc | 393 |     Me Encanta
 | 
        
           | 6094 | stevensc | 394 |     {{/if}}
 | 
        
           |  |  | 395 |     {{if reaction === '<?php echo ContentReaction::REACTION_RECOMMENDED ?>'}}
 | 
        
           |  |  | 396 |     <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="RecommendIcon" style="color: rgb(116, 5, 249);">
 | 
        
           |  |  | 397 |         <path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm6 9.8a.9.9 0 0 1-.1.5l-2.1 4.9a1.34 1.34 0 0 1-1.3.8H9a2 2 0 0 1-2-2v-5a1.28 1.28 0 0 1 .4-1L12 5l.69.69a1.08 1.08 0 0 1 .3.7v.2L12.41 10H17a1 1 0 0 1 1 1z"></path>
 | 
        
           |  |  | 398 |     </svg>
 | 
        
           | 6164 | stevensc | 399 |     Recomendado
 | 
        
           | 6094 | stevensc | 400 |     {{/if}}
 | 
        
           |  |  | 401 |     {{if reaction === '<?php echo ContentReaction::REACTION_SUPPORT ?>'}}
 | 
        
           |  |  | 402 |     <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="VolunteerActivismIcon" style="color: rgb(100, 149, 237);">
 | 
        
           |  |  | 403 |         <path d="M1 11h4v11H1zm15-7.75C16.65 2.49 17.66 2 18.7 2 20.55 2 22 3.45 22 5.3c0 2.27-2.91 4.9-6 7.7-3.09-2.81-6-5.44-6-7.7C10 3.45 11.45 2 13.3 2c1.04 0 2.05.49 2.7 1.25zM20 17h-7l-2.09-.73.33-.94L13 16h2.82c.65 0 1.18-.53 1.18-1.18 0-.49-.31-.93-.77-1.11L8.97 11H7v9.02L14 22l8.01-3c-.01-1.1-.9-2-2.01-2z"></path>
 | 
        
           |  |  | 404 |     </svg>
 | 
        
           | 6164 | stevensc | 405 |     Lo Apoyo
 | 
        
           | 6094 | stevensc | 406 |     {{/if}}
 | 
        
           | 6164 | stevensc | 407 |     {{if reaction === ''}}
 | 
        
           |  |  | 408 |     <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="RecommendIcon" style="color: gray;">
 | 
        
           |  |  | 409 |         <path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm6 9.8a.9.9 0 0 1-.1.5l-2.1 4.9a1.34 1.34 0 0 1-1.3.8H9a2 2 0 0 1-2-2v-5a1.28 1.28 0 0 1 .4-1L12 5l.69.69a1.08 1.08 0 0 1 .3.7v.2L12.41 10H17a1 1 0 0 1 1 1z"></path>
 | 
        
           |  |  | 410 |     </svg>
 | 
        
           |  |  | 411 |     Reaccionar
 | 
        
           |  |  | 412 |     {{/if}}
 | 
        
           | 6056 | efrain | 413 | </script>
 | 
        
           |  |  | 414 |   | 
        
           |  |  | 415 |   | 
        
           |  |  | 416 | <script id="commentTemplate" type="text/x-jsrender">
 | 
        
           |  |  | 417 |     <li>
 | 
        
           | 6149 | stevensc | 418 |         <div class="comment-container">
 | 
        
           |  |  | 419 | 	        <div class="comment-content comment-{{:unique}}" >
 | 
        
           |  |  | 420 | 	            <div class="info">
 | 
        
           |  |  | 421 |                     <a href="{{>user_url}}">
 | 
        
           |  |  | 422 |                         <h3>{{>user_name}}</h3>
 | 
        
           |  |  | 423 |                     </a>
 | 
        
           |  |  | 424 |                     <span>
 | 
        
           |  |  | 425 |                         {{>time_elapsed}}
 | 
        
           |  |  | 426 |                         {{if link_delete}}
 | 
        
           |  |  | 427 |                         <a href="#" class="btn-comment-trash" data-link="{{:link_delete}}" data-comment-unique="{{>unique}}">
 | 
        
           |  |  | 428 |                             <i class="fa fa-trash"></i>
 | 
        
           |  |  | 429 |                         </a>
 | 
        
           |  |  | 430 |                         {{/if}}
 | 
        
           | 6056 | efrain | 431 |                     </span>
 | 
        
           | 6149 | stevensc | 432 |                 </div>
 | 
        
           | 6056 | efrain | 433 | 		      <p>{{>comment}}</p>
 | 
        
           |  |  | 434 | 		  </div>
 | 
        
           |  |  | 435 | 	   </div>
 | 
        
           |  |  | 436 |     </li>
 | 
        
           | 6094 | stevensc | 437 | </script>
 |