wp_enqueue_scripts
, admin_enqueue_scripts
, or login_enqueue_scripts
hooks. This notice was triggered by the codepen-embed-script
handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/jwblogger/jwBlogger/wp-includes/functions.php on line 6114The purpose of the #propifyyourlife app<\/a> is to present resources and images of yoga poses that promote knowledge and awareness of poses, as well as the promotion of the yoga community as a whole. More specifically, I wish to present alternative forms of practicing yoga to express my deep conviction that yoga is for every body, regardless of ability. Additionally, by building and maintaining this application, I am furthering my own knowledge of yoga and website development.<\/p>\n <\/p>\n This initial verson of the app is a collection bin of blog posts, images, and videos of individual yoga poses. Future development will include tagging these web resources as it relates to the health benefits they provide.<\/p>\n {{LinkListStatus}}<\/p> {{link.description}} See Instagram posts tagged as '\" + $scope.pose.sanskritName + \"'<\/a><\/p><\/div>\");\n\t\t\t});\n\t\t}\n\t}\n}]);\n<\/pre>\n<\/li>\n<\/ul>\n {{video.title}}<\/strong><\/a><\/p>\" +\n\t\t\t\t\t\t\" {{video.title}}<\/strong><\/a><\/p>\" +\n\t\t\t\t\t\t\"Takeaways<\/h2>\n
\n
The Code<\/h2>\n
Directives<\/h3>\n
Pose List View<\/h4>\n
\n
\nangular.module('YogaPoseApp').controller('PoseListCtrl', ['$scope', '$location', 'poseListService', function ($scope, $location, appService ) {\n\t\/\/ DATA INIT\n\t$scope.poses = [];\n\tconsole.log('PoseListCtrl()');\n\n\t$scope.status = \"Initiate\";\n\t$scope.filtering = false;\n\n\t$scope.activeTags = \"\";\n\t$scope.tags = {};\n\n\t$scope.isReady = false;\n\n\t$scope.defaultImage = $scope.activePoseImg = 'http:\/\/placehold.it\/350x350';\n\t\n\t\/\/ GET ALL POSES\n\tappService.getPoses().then(function(response) {\n\t\tconsole.log(response);\n\t\t$scope.poseList = response.data;\n\t\t$scope.isReady = true;\n\t}, function(response) {\n\t\t$scope.status = \"Error getting poses\";\n\t\tconsole.log('Error fetching poses', response);\n\t});\n\n\t\/\/ LOAD TAGS\n\t\/\/ Specifically, we load the pose types. Every pose belongs to at least one of these Pose Types.\n\t\/\/ The user can filter the pose list with these specific tags\n\tappService.loadPoseTypes().then(function(response) {\n\t\tangular.forEach(response.data, function(data) {\n\t\t\t$scope.tags[data.ID] = {ID: data.ID, tagName: data.tagName, filterOn: false};\n\t\t})\n\t}, function(response) {\n\t\t$scope.status = \"Error getting tags\";\n\t\tconsole.log('Error fetching tags', response);\n\t});\n\n\n\t\/\/ Custom filter to filter the poses by pose type.\n\t$scope.filterList = function(pose) {\n\t\tif(!$scope.filtering) \n\t\t\treturn true;\n\t\telse {\n\t\t\treturn $scope.activeTags.replace(\/\\s*,\\s*\/g, ',').split(',').every(function(cat) {\n\t\t\t\treturn pose.tags.some(function(objTag){\n\t\t\t\t\treturn objTag.ID.indexOf(cat) !== -1;\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\t};\n\n\t\/\/ Manages the ActiveTags (string) scope variable\n\t$scope.toggleTag = function(tag) {\n\t\tif($scope.activeTags.indexOf(tag) >= 0)\n\t\t\t$scope.activeTags = $scope.activeTags.replace(tag+',', '');\n\t\telse\n\t\t\t$scope.activeTags += tag + ',';\n\t}\n\n\t\/\/ Changes the View.\n\t$scope.go = function(path) {\n\t\t$location.path(path);\n\t}\n}]);\n<\/pre>\n<\/li>\n<\/ul>\n
yogaLinkFeed<\/h4>\n
\n
\nangular.module('YogaPoseApp').directive('yogaLinkFeed', ['$compile', function($compile) {\n\tconsole.log('yogaInstafeed()');\n\tvar tpl = \"
Other Links<\/h3>
{{link.title}}<\/a><\/h5>\" +\n\t\t\t\t\t\t\"
{{link.domain}}<\/strong><\/p>\" +\n\t\t\t\t\t\"<\/div>\" +\n\t\t\t\t\"<\/div>\";\n\n\treturn {\n\t\trestrict: 'EC',\n\t\treplace: true,\n\t\ttemplate: tpl,\n\t\tscope: false,\n\t\tlink: function($scope, $el, attrs, $rootScope ) {\n\n\t\t}\n\t}\n}]);\n\t\t\t\t<\/pre>\n<\/li>\n<\/ul>\nyogaInstaFeed<\/h4>\n
\n
\nangular.module('YogaPoseApp').directive('yogaInstaFeed', ['$compile', function($compile) {\n\tconsole.log('yogaInstafeed()');\n\tvar tpl = \"
From Instagram<\/h3>\" +\n\t\t\t\t\"
\" +\n\t\t\t\t\t\"
yogaVideoList<\/h4>\n
\n
\nangular.module('YogaPoseApp').directive('yogaVideoList', ['$compile', function($compile) {\n\tconsole.log('yogaVideoList()');\n\tvar rootTpl = \"
{{videoListStatus}}<\/h3>
{{video.title}}<\/h5>\" +\n\t\t\t\t\t\t\"
{{video.title}}<\/h5>\" +\n\t\t\t\t\t\t\"
yogaMediaViewer<\/h4>\n
\n
\nangular.module('YogaPoseApp').directive('yogaMediaViewer', function() {\n\treturn {\n\t\trestrict: 'AC',\n\t\t\/*scope: {\n\t\t\tpose: '=',\n\t\t\tmediaObj: '='\n\t\t},*\/\n\t\tscope: false,\n\t\treplace: true,\n\t\ttemplate: '
'+obj.title+'<\/h4>