{"action":"created","issue":{"url":"https://api.github.com/repos/ReduxFramework/redux-extensions/issues/141","labels_url":"https://api.github.com/repos/ReduxFramework/redux-extensions/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/ReduxFramework/redux-extensions/issues/141/comments","events_url":"https://api.github.com/repos/ReduxFramework/redux-extensions/issues/141/events","html_url":"https://github.com/ReduxFramework/redux-extensions/issues/141","id":54908307,"number":141,"title":"Problem typography with the metabox","user":{"login":"nicolas92","id":7522460,"avatar_url":"https://avatars.githubusercontent.com/u/7522460?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolas92","html_url":"https://github.com/nicolas92","followers_url":"https://api.github.com/users/nicolas92/followers","following_url":"https://api.github.com/users/nicolas92/following{/other_user}","gists_url":"https://api.github.com/users/nicolas92/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolas92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolas92/subscriptions","organizations_url":"https://api.github.com/users/nicolas92/orgs","repos_url":"https://api.github.com/users/nicolas92/repos","events_url":"https://api.github.com/users/nicolas92/events{/privacy}","received_events_url":"https://api.github.com/users/nicolas92/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-20T16:53:18Z","updated_at":"2015-01-20T17:18:42Z","closed_at":null,"body":"Hello, I have a little problem with the Metabox, I created a section \"Typography\", I created the same section in the theme options panel, the code works fine but when I remove the police of the Metabox, I would like the police chose in the panel is the one by default, but police panel is no longer taken into account, can you help me?\r\n\r\nHere is my code:\r\n\r\nMetabox:\r\n<pre>array(\r\n    'id'                => $prefix . 'body_font',\r\n    'type'              => 'typography',\r\n    'title'             => Body,\r\n    'compiler'          => false,\r\n    'output'            => false,\r\n    'google'            => true,\r\n    'font-backup'       => false,\r\n    'font-style'        => true,\r\n    'subsets'           => true,\r\n    'font-size'         => true,\r\n    'line-height'       => true,\r\n    'word-spacing'      => false,\r\n    'letter-spacing'    => false,\r\n    'text-align'        => false,\r\n    'color'             => true,\r\n    'preview'           => true,\r\n    'units'             => 'px',\r\n    'all_styles'        => true,\r\n    'subtitle'          => Select your custom typography options.,\r\n    'default'           => array(\r\n        'font-family'   => '',\r\n        'font-size'     => '',\r\n        'font-weight'   => '',\r\n        'line-height'   => '',\r\n    ),\r\n    'font_family_clear' => true,\r\n),</pre>\r\n\r\nFile to call the police:\r\n<pre>$add_css = '';\r\n$font = ks_option( 'body_font' );\r\n$meta = get_post_meta( ks_get_the_id(), 'ks_body_font', true );\r\nif ( ! empty( $meta ) ) {\r\n\t$font = $meta;\r\n}\r\n\r\nif ( ! empty( $font ) ) {\r\n\t\r\n\t// Vars\r\n\t$family = isset( $font['font-family'] ) ? $font['font-family'] : '';\r\n\t$size = isset( $font['font-size'] ) ? $font['font-size'] : '';\r\n\t$weight = isset( $font['font-weight'] ) ? $font['font-weight'] : '';\r\n\t$style = isset( $font['font-style'] ) ? $font['font-style'] : '';\r\n\t$color = isset( $font['color'] ) ? $font['color'] : '';\r\n\t$line_height = isset( $font['line-height'] ) ? $font['line-height'] : '';\r\n\t\r\n\t// Font family\r\n\tif ( ! empty( $family ) && 'inherit' != $family ) {\r\n\t\t$css .= '.button, input, textarea{font-family:'. $family .'}';\r\n\t\t$add_css .= 'font-family:'. $family .';';\r\n\t\t$load_google_fonts[] = $family;\r\n\t}\r\n\t\r\n\t// Font size\r\n\tif ( ! empty( $size ) && 'inherit' != $size ) {\r\n\t\t$add_css .= 'font-size:'. $size .';';\r\n\t}\r\n\t\r\n\t// Font weight\r\n\tif ( ! empty( $weight ) && 'inherit' != $weight ) {\r\n\t\t$add_css .= 'font-weight:'. $weight .';';\r\n\t}\r\n\r\n\t// Font Style\r\n\tif ( ! empty( $style ) && 'inherit' != $style ) {\r\n\t\t$add_css .= 'font-style:'. $style .';';\r\n\t}\r\n\t\r\n\t// Font color\r\n\tif ( ! empty( $color ) && 'inherit' != $color ) {\r\n\t\t$add_css .= 'color:'. $color .';';\r\n\t}\r\n\r\n\t// Line Height\r\n\tif ( ! empty( $line_height ) && 'inherit' != $line_height ) {\r\n\t\t$add_css .= 'line-height:'. $line_height .';';\r\n\t}\r\n\t\r\n\t\r\n}\r\n\r\nif( $add_css ) {\r\n\t$css .= 'body{'. $add_css .'}';\r\n}</pre>\r\n\r\n\r\nThank you very much, great extension."},"comment":{"url":"https://api.github.com/repos/ReduxFramework/redux-extensions/issues/comments/70693429","html_url":"https://github.com/ReduxFramework/redux-extensions/issues/141#issuecomment-70693429","issue_url":"https://api.github.com/repos/ReduxFramework/redux-extensions/issues/141","id":70693429,"user":{"login":"kprovance","id":3412363,"avatar_url":"https://avatars.githubusercontent.com/u/3412363?v=3","gravatar_id":"","url":"https://api.github.com/users/kprovance","html_url":"https://github.com/kprovance","followers_url":"https://api.github.com/users/kprovance/followers","following_url":"https://api.github.com/users/kprovance/following{/other_user}","gists_url":"https://api.github.com/users/kprovance/gists{/gist_id}","starred_url":"https://api.github.com/users/kprovance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kprovance/subscriptions","organizations_url":"https://api.github.com/users/kprovance/orgs","repos_url":"https://api.github.com/users/kprovance/repos","events_url":"https://api.github.com/users/kprovance/events{/privacy}","received_events_url":"https://api.github.com/users/kprovance/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T17:18:42Z","updated_at":"2015-01-20T17:18:42Z","body":"Instead of get_post_meta, use redux_post_meta.\r\n\r\n`redux_post_meta( $opt_name = \"\", $thePost = array(), $meta_key = \"\")`"}}