{"id":1105,"date":"2017-03-22T18:40:29","date_gmt":"2017-03-22T17:40:29","guid":{"rendered":"http:\/\/bodour.ma\/ar\/?page_id=1105"},"modified":"2017-03-22T18:48:33","modified_gmt":"2017-03-22T17:48:33","slug":"%d8%a7%d9%84%d9%81%d8%b6%d8%a7%d8%a1-%d8%a7%d9%84%d8%a7-%d8%ac%d8%aa%d9%85%d8%a7%d8%b9%d9%8a","status":"publish","type":"page","link":"https:\/\/bodour.net\/ar\/%d8%a7%d9%84%d9%81%d8%b6%d8%a7%d8%a1-%d8%a7%d9%84%d8%a7-%d8%ac%d8%aa%d9%85%d8%a7%d8%b9%d9%8a\/","title":{"rendered":"\u0627\u0644\u0641\u0636\u0627\u0621 \u0627\u0644\u0627 \u062c\u062a\u0645\u0627\u0639\u064a"},"content":{"rendered":"<p>[vc_row][vc_column][vc_column_text]<link rel='stylesheet' id='ff-dynamic-css1 type='text\/css' href='https:\/\/bodour.net\/ar\/wp-content\/resources\/flow-flow\/css\/stream-id1.css?ver=1490895804'\/>\t<!-- Flow-Flow \u2014 Social stream plugin for WordPress -->\n\t<div class=\"ff-stream\" id=\"ff-stream-1\"><span class=\"ff-loader\"><span class=\"ff-square\" ><\/span><span class=\"ff-square\"><\/span><span class=\"ff-square ff-last\"><\/span><span class=\"ff-square ff-clear\"><\/span><span class=\"ff-square\"><\/span><span class=\"ff-square ff-last\"><\/span><span class=\"ff-square ff-clear\"><\/span><span class=\"ff-square\"><\/span><span class=\"ff-square ff-last\"><\/span><\/span><\/div>\n\n\t<script type=\"text\/javascript\">\n\n\t\t(function ( $ ) {\n\t\t\t\"use strict\";\n\t\t\tvar hash = '1616079443.fe6397a9be4a692d530e5b6d53486fb4c776502a2b90e8d1795df431d4048f4656f0c9d7907496d4824b03061f378a55';\n\t\t\tif (\/MSIE 8\/.test(navigator.userAgent)) return;\n\t\t\tvar opts = window.FlowFlowOpts;\n            var isLS = isLocalStorageNameSupported();\n\t\t\tif (!opts) {\n\t\t\t\twindow.console && window.console.log('Flow-Flow Social Stream: no options available on moment of script execution');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (!window.FF_resource) {\n\t\t\t\twindow.console && window.console.log('Flow-Flow Social Stream: required script has not been loaded. Please check if all resources in place or loaded in correct order.');\n\t\t\t\treturn\n\t\t\t}\n\t\t\tvar data = {\n\t\t\t\t'action': 'fetch_posts',\n\t\t\t\t'stream-id': '1',\n\t\t\t\t'disable-cache': '',\n\t\t\t\t'hash': hash,\n\t\t\t\t'page': '0',\n\t\t\t\t'preview': '0'\n\t\t\t};\n\t\t\tvar isMobile = \/android|blackBerry|iphone|ipad|ipod|opera mini|iemobile\/i.test(navigator.userAgent);\n\t\t\tvar streamOpts = {\"name\":\"social\",\"moderation\":\"nope\",\"order\":\"smartCompare\",\"posts\":\"30\",\"days\":\"\",\"page-posts\":\"15\",\"cache\":\"yep\",\"cache_lifetime\":\"10\",\"gallery\":\"yep\",\"private\":\"nope\",\"hide-on-desktop\":\"nope\",\"hide-on-mobile\":\"nope\",\"show-only-media-posts\":\"nope\",\"titles\":\"nope\",\"hidemeta\":\"nope\",\"hidetext\":\"nope\",\"heading\":\"\",\"headingcolor\":\"rgb(59, 61, 64)\",\"subheading\":\"\",\"subheadingcolor\":\"rgb(114, 112, 114)\",\"hhalign\":\"center\",\"bgcolor\":\"rgb(240, 240, 240)\",\"filter\":\"yep\",\"filtercolor\":\"rgb(205, 205, 205)\",\"mobileslider\":\"nope\",\"viewportin\":\"yep\",\"width\":\"260\",\"margin\":\"20\",\"layout\":\"masonry\",\"theme\":\"classic\",\"gc-style\":\"style-1\",\"upic-pos\":\"timestamp\",\"upic-style\":\"round\",\"icon-style\":\"label1\",\"cardcolor\":\"rgb(255, 255, 255)\",\"namecolor\":\"rgb(59, 61, 64)\",\"textcolor\":\"rgb(131, 141, 143)\",\"linkscolor\":\"rgb(94, 159, 202)\",\"restcolor\":\"rgb(132, 118, 129)\",\"shadow\":\"rgba(0, 0, 0, 0.05)\",\"bcolor\":\"rgba(0, 0, 0, 0.75)\",\"talign\":\"left\",\"icons-style\":\"outline\",\"cards-num\":\"3\",\"scrolltop\":\"yep\",\"c-desktop\":\"5\",\"c-laptop\":\"4\",\"c-tablet-l\":\"3\",\"c-tablet-p\":\"2\",\"c-smart-l\":\"2\",\"c-smart-p\":\"1\",\"s-desktop\":\"15\",\"s-laptop\":\"15\",\"s-tablet-l\":\"10\",\"s-tablet-p\":\"10\",\"s-smart-l\":\"5\",\"s-smart-p\":\"5\",\"m-c-desktop\":\"5\",\"m-c-laptop\":\"4\",\"m-c-tablet-l\":\"3\",\"m-c-tablet-p\":\"2\",\"m-c-smart-l\":\"2\",\"m-c-smart-p\":\"1\",\"m-s-desktop\":\"15\",\"m-s-laptop\":\"15\",\"m-s-tablet-l\":\"10\",\"m-s-tablet-p\":\"10\",\"m-s-smart-l\":\"5\",\"m-s-smart-p\":\"5\",\"j-h-desktop\":\"260\",\"j-h-laptop\":\"240\",\"j-h-tablet-l\":\"220\",\"j-h-tablet-p\":\"200\",\"j-h-smart-l\":\"180\",\"j-h-smart-p\":\"160\",\"j-s-desktop\":\"0\",\"j-s-laptop\":\"0\",\"j-s-tablet-l\":\"0\",\"j-s-tablet-p\":\"0\",\"j-s-smart-l\":\"0\",\"j-s-smart-p\":\"0\",\"g-ratio-w\":\"1\",\"g-ratio-h\":\"2\",\"g-ratio-img\":\"1\\\/2\",\"g-overlay\":\"nope\",\"m-overlay\":\"nope\",\"css\":\"\",\"template\":[\"header\",\"text\",\"image\",\"meta\"],\"tv\":\"nope\",\"tv-int\":\"5\",\"tv-logo\":\"\",\"tv-bg\":\"\",\"big\":\"nope\",\"id\":\"1\",\"last_changes\":1490895804,\"status\":\"0\",\"feeds\":[{\"id\":\"bt81714\",\"errors\":[{\"url\":\"https:\\\/\\\/api.instagram.com\\\/v1\\\/users\\\/search?q=bodourofficiel&access_token=198558901.94072d7.82aeb65edf1e4aa7a2caa6ed4da9184d\",\"type\":\"instagram\",\"message\":\"SSL certificate OpenSSL verify result: unable to get local issuer certificate (20)\"}],\"status\":\"0\",\"enabled\":\"nope\",\"last_update\":\"N\\\/A\",\"cache_lifetime\":\"30\",\"system_enabled\":\"0\",\"timeline-type\":\"user_timeline\",\"content\":\"bodourofficiel\",\"posts\":\"10\",\"mod\":\"nope\",\"type\":\"instagram\",\"filter-by-words\":\"\"},{\"id\":\"bx83566\",\"errors\":[{\"type\":\"facebook\",\"message\":\"The access token could not be decrypted\",\"url\":\"https:\\\/\\\/graph.facebook.com\\\/v2.8\\\/160119127814433\\\/posts?fields=likes.summary(true),comments.summary(true),shares,id,created_time,from,link,message,name,object_id,picture,full_picture,attachments{media{image}},source,status_type,story,type&limit=5&locale=ar&access_token=EAAJWN9ls81sBAD8BVyEUzR3973BhQonKAYk59XtZC4O0IFmrrVLkPHUB0bt4ObnnDjnW2gtvBdcllo6xChFGctNeIfZCu2HeO822ofIQU0ugbgUVIZC2gYluCOPvo8mDCsuQU7CSOnLTxRNkwdZAdmSF372HTEetiJQUgIJHFgZDZD\"}],\"status\":\"0\",\"enabled\":\"nope\",\"last_update\":\"N\\\/A\",\"cache_lifetime\":\"30\",\"system_enabled\":\"0\",\"timeline-type\":\"page_timeline\",\"content\":\"160119127814433\",\"posts\":\"5\",\"mod\":\"nope\",\"type\":\"facebook\",\"filter-by-words\":\"\"},{\"id\":\"ye11958\",\"errors\":[{\"type\":\"youtube\",\"message\":\"object(stdClass)#10267 (4) {\\n  [&quot;kind&quot;]=&gt;\\n  string(27) &quot;youtube#channelListResponse&quot;\\n  [&quot;etag&quot;]=&gt;\\n  string(27) &quot;x-PNo1SYaPuYekNTtsovMDfWQl0&quot;\\n  [&quot;pageInfo&quot;]=&gt;\\n  object(stdClass)#10269 (2) {\\n    [&quot;totalResults&quot;]=&gt;\\n    int(1)\\n    [&quot;resultsPerPage&quot;]=&gt;\\n    int(5)\\n  }\\n  [&quot;items&quot;]=&gt;\\n  array(1) {\\n    [0]=&gt;\\n    object(stdClass)#10270 (5) {\\n      [&quot;kind&quot;]=&gt;\\n      string(15) &quot;youtube#channel&quot;\\n      [&quot;etag&quot;]=&gt;\\n      string(27) &quot;8AOgw7ZZIHs_01btcKUDg4gkUsU&quot;\\n      [&quot;id&quot;]=&gt;\\n      string(24) &quot;UC7dmzF8hhhIen_Sk_533BmA&quot;\\n      [&quot;snippet&quot;]=&gt;\\n      object(stdClass)#10271 (6) {\\n        [&quot;title&quot;]=&gt;\\n        string(15) &quot;Bodour officiel&quot;\\n        [&quot;description&quot;]=&gt;\\n        string(0) &quot;&quot;\\n        [&quot;customUrl&quot;]=&gt;\\n        string(18) &quot;@bodourofficiel317&quot;\\n        [&quot;publishedAt&quot;]=&gt;\\n        string(20) &quot;2017-02-15T16:09:00Z&quot;\\n        [&quot;thumbnails&quot;]=&gt;\\n        object(stdClass)#10272 (3) {\\n          [&quot;default&quot;]=&gt;\\n          object(stdClass)#10273 (3) {\\n            [&quot;url&quot;]=&gt;\\n            string(102) &quot;https:\\\/\\\/yt3.ggpht.com\\\/ytc\\\/AIdro_nlY-_hsvYY68dApV7DptZ88_ghUhuuXNbOfPMWzcevqQ=s88-c-k-c0x00ffffff-no-rj&quot;\\n            [&quot;width&quot;]=&gt;\\n            int(88)\\n            [&quot;height&quot;]=&gt;\\n            int(88)\\n          }\\n          [&quot;medium&quot;]=&gt;\\n          object(stdClass)#10274 (3) {\\n            [&quot;url&quot;]=&gt;\\n            string(103) &quot;https:\\\/\\\/yt3.ggpht.com\\\/ytc\\\/AIdro_nlY-_hsvYY68dApV7DptZ88_ghUhuuXNbOfPMWzcevqQ=s240-c-k-c0x00ffffff-no-rj&quot;\\n            [&quot;width&quot;]=&gt;\\n            int(240)\\n            [&quot;height&quot;]=&gt;\\n            int(240)\\n          }\\n          [&quot;high&quot;]=&gt;\\n          object(stdClass)#10275 (3) {\\n            [&quot;url&quot;]=&gt;\\n            string(103) &quot;https:\\\/\\\/yt3.ggpht.com\\\/ytc\\\/AIdro_nlY-_hsvYY68dApV7DptZ88_ghUhuuXNbOfPMWzcevqQ=s800-c-k-c0x00ffffff-no-rj&quot;\\n            [&quot;width&quot;]=&gt;\\n            int(800)\\n            [&quot;height&quot;]=&gt;\\n            int(800)\\n          }\\n        }\\n        [&quot;localized&quot;]=&gt;\\n        object(stdClass)#10276 (2) {\\n          [&quot;title&quot;]=&gt;\\n          string(15) &quot;Bodour officiel&quot;\\n          [&quot;description&quot;]=&gt;\\n          string(0) &quot;&quot;\\n        }\\n      }\\n      [&quot;contentDetails&quot;]=&gt;\\n      object(stdClass)#10277 (1) {\\n        [&quot;relatedPlaylists&quot;]=&gt;\\n        object(stdClass)#10278 (2) {\\n          [&quot;likes&quot;]=&gt;\\n          string(0) &quot;&quot;\\n          [&quot;uploads&quot;]=&gt;\\n          string(24) &quot;UU7dmzF8hhhIen_Sk_533BmA&quot;\\n        }\\n      }\\n    }\\n  }\\n}\\n\",\"url\":\"https:\\\/\\\/www.googleapis.com\\\/youtube\\\/v3\\\/channels?part=snippet%2CcontentDetails&id=UC7dmzF8hhhIen_Sk_533BmA&key=AIzaSyBt29I3qgIFyWkLgaZQdqYVoyoasHsthsg\"}],\"status\":\"0\",\"enabled\":\"nope\",\"last_update\":\"N\\\/A\",\"cache_lifetime\":\"30\",\"system_enabled\":\"0\",\"timeline-type\":\"channel\",\"content\":\"UC7dmzF8hhhIen_Sk_533BmA\",\"playlist-order\":\"nope\",\"posts\":\"10\",\"mod\":\"nope\",\"type\":\"youtube\",\"filter-by-words\":\"\"}],\"preview\":false};\n            opts.streams['stream' + streamOpts.id] = streamOpts;\n\t\t\tvar $cont = $(\"#ff-stream-\"+data['stream-id']);\n\t\t\tvar ajaxDeferred;\n\t\t\tvar script, style;\n\t\t\tvar layout_pre = streamOpts.layout.charAt(0);\n\t\t\tvar isOverlay = layout_pre === 'j' || streamOpts[layout_pre + '-overlay'] === 'yep';\n\t\t\tvar imgIndex;\n\t\t\tif (isOverlay) {\n\t\t\t\tif (streamOpts.template[0] !== 'image') {\n\t\t\t\t\tfor (var i = 0, len = streamOpts.template.length; i < len; i++) {\n\t\t\t\t\t\tif (streamOpts.template[i] === 'image') imgIndex = i;\n\t\t\t\t\t}\n\t\t\t\t\tstreamOpts.template.splice(0, 0, streamOpts.template.splice(imgIndex, 1)[0]);\n\t\t\t\t}\n\t\t\t\tstreamOpts.isOverlay = true;\n\t\t\t}\n\t\t\tconsole.log(streamOpts.template)\n\t\t\tif (FF_resource.scriptDeferred.state() === 'pending' && !FF_resource.scriptLoading) {\n\t\t\t\tscript = document.createElement('script');\n\t\t\t\tscript.src = \"https:\/\/bodour.net\/ar\/wp-content\/plugins\/flow-flow\/js\/public.js\";\n\t\t\t\tscript.onload = function( script, textStatus ) {\n\t\t\t\t\tFF_resource.scriptDeferred.resolve();\n\t\t\t\t};\n\t\t\t\tdocument.body.appendChild(script);\n\t\t\t\tFF_resource.scriptLoading = true;\n\t\t\t}\n\t\t\tif (FF_resource.styleDeferred.state() === 'pending' && !FF_resource.styleLoading) {\n\t\t\t\tstyle = document.createElement('link');\n\t\t\t\tstyle.type = \"text\/css\";\n                style.id = \"ff_style\";\n                style.rel = \"stylesheet\";\n\t\t\t\tstyle.href = \"https:\/\/bodour.net\/ar\/wp-content\/plugins\/flow-flow\/css\/public.css\";\n\t\t\t\tstyle.media = \"screen\";\n\t\t\t\tstyle.onload = function( script, textStatus ) {\n\t\t\t\t\tFF_resource.styleDeferred.resolve();\n\t\t\t\t};\n\t\t\t\tdocument.getElementsByTagName(\"head\")[0].appendChild(style);\n\t\t\t\tFF_resource.styleLoading = true;\n\t\t\t}\n\t\t\t$cont.addClass('ff-layout-' + streamOpts.layout);\n\t\t\tif (!isMobile) $cont.css('minHeight', '1000px'); \/\/ todo preload space\n\t\t\tajaxDeferred = isLS && sessionStorage.getItem(hash) ? {} : $.get(opts.ajaxurl, data)\n;\n\t\t\t$.when( ajaxDeferred, FF_resource.scriptDeferred, FF_resource.styleDeferred ).done(function ( data ) {\n\t\t\t\tvar response, $errCont, err;\n                var moderation = 0;\n                var original = (isLS && sessionStorage.getItem(hash)) ? sessionStorage.getItem(hash) : data[0];\n\t\t\t\ttry {\n\t\t\t\t\tresponse = JSON.parse(original);\n\t\t\t\t} catch (e) {\n\t\t\t\t\twindow.console && window.console.log('Flow-Flow gets invalid data from server');\n\t\t\t\t\tif (opts.isAdmin || opts.isLog) {\n\t\t\t\t\t\t$errCont = $('<div class=\"ff-errors\" id=\"ff-errors-invalid-response\"><div class=\"ff-disclaim\">If you see this message then you have administrator permissions and Flow-Flow got invalid data from server. Please provide error message below if you are doing support request.<\\\/div><div class=\"ff-err-info\"><\\\/div><\\\/div>');\n\t\t\t\t\t\t$cont.before($errCont);\n\t\t\t\t\t\t$errCont.find('.ff-err-info').html(original == '' ? 'Empty response from server' : original)\n\t\t\t\t\t}\n\t\t\t\t\treturn;\n\t\t\t\t}\n                opts.streams['stream' + streamOpts.id]['items'] = response;\n                if (!FlowFlowOpts.dependencies) FlowFlowOpts.dependencies = {};\n\t\t\t\t                var requests = [];\n                var request, extension, style;\n\n                for ( extension in FlowFlowOpts.dependencies ) {\n                    if ( FlowFlowOpts.dependencies[extension] && FlowFlowOpts.dependencies[extension] !== 'loaded') {\n                        request = $.getScript( opts.plugin_base + '-' + extension + '\/js\/ff_' + extension + '_public.js');\n                        requests.push(request);\n\n                        style = document.createElement('link');\n                        style.type = \"text\/css\";\n                        style.rel = \"stylesheet\";\n                        style.id = \"ff_ad_style\";\n                        style.href = opts.plugin_base + '-' + extension + '\/css\/ff_' + extension + '_public.css';\n                        style.media = \"screen\";\n                        document.getElementsByTagName(\"head\")[0].appendChild(style);\n\n                        FlowFlowOpts.dependencies[extension] = 'loaded';\n                    }\n                }\n\n                var resourcesLoaded = $.when.apply($, requests);\n\n                resourcesLoaded.done(function(){\n                    var $stream, width;\n                    $stream = FlowFlow.buildStreamWith(response, streamOpts, moderation, FlowFlowOpts.dependencies);\n                    if (isLS && response.items.length > 0 && response.hash.length > 0) sessionStorage.setItem(response.hash, original);\n                    var num = streamOpts.layout === 'compact' || (streamOpts.mobileslider === 'yep' && isMobile)? (streamOpts.mobileslider === 'yep' ? 3 : streamOpts['cards-num']) : false;\n\t\t\t\t\t$cont.append($stream);\n                    if (typeof $stream !== 'string') {\n                        FlowFlow.setupGrid($cont.find('.ff-stream-wrapper'), num, streamOpts.scrolltop === 'yep', streamOpts.gallery === 'yep', streamOpts, $cont);\n                    }\n                    setTimeout(function(){\n                        $cont.find('.ff-header').removeClass('ff-loading').end().find('.ff-loader').addClass('ff-squeezed').delay(300).hide();\n                    }, 0);\n\n\t                \n                }).fail(function(){\n                    console.log('Flow-Flow: resource loading failed')\n                });\n\n                var isErr = response.status === \"errors\";\n                if ((opts.isAdmin || opts.isLog) && isErr) {\n\t\t\t\t\t$errCont = $('<div class=\"ff-errors\" id=\"ff-errors-'+response.id+'\"><div class=\"ff-err-info\">If you see this then you are administrator and Flow-Flow got errors from APIs while requesting data. Please go to plugin admin and after refreshing page check for error(s) on stream settings page. Please provide error message info if you are doing support request.<\\\/div><\\\/div>');\n\t\t\t\t\t$cont.before($errCont);\n\t\t\t\t}\n\n                if (opts.isAdmin && response.status === 'building') {\n                    window.console && window.console.log(response);\n                    $cont.prepend($('<div id=\"ff-admin-info\">ADMIN INFO: Feeds cache is being built in background. Please wait for changes to apply. Page reload is required.<\\\/div>'));\n                }\n\t\t\t});\n\n            function isLocalStorageNameSupported() {\n                var testKey = 'test', storage = window.sessionStorage;\n                try {\n                    storage.setItem(testKey, '1');\n                    storage.removeItem(testKey);\n                    return true;\n                } catch (error) {\n                    return false;\n                }\n            };\n\n\t\t\treturn false;\n\t\t}(jQuery));\n\t<\/script>\n\t<!-- Flow-Flow \u2014 Social streams plugin for Wordpress -->[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[vc_row][vc_column][vc_column_text][\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/bodour.net\/ar\/wp-json\/wp\/v2\/pages\/1105"}],"collection":[{"href":"https:\/\/bodour.net\/ar\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/bodour.net\/ar\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/bodour.net\/ar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bodour.net\/ar\/wp-json\/wp\/v2\/comments?post=1105"}],"version-history":[{"count":2,"href":"https:\/\/bodour.net\/ar\/wp-json\/wp\/v2\/pages\/1105\/revisions"}],"predecessor-version":[{"id":1108,"href":"https:\/\/bodour.net\/ar\/wp-json\/wp\/v2\/pages\/1105\/revisions\/1108"}],"wp:attachment":[{"href":"https:\/\/bodour.net\/ar\/wp-json\/wp\/v2\/media?parent=1105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}